|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.security.Cookies
Maintains user's information for variety of services Note: Implements Singleton Design Pattern
Constructor Summary | |
protected |
Cookies()
Creates new Cookies Note: Implements Singleton Design Pattern |
Method Summary | |
User |
getUserInfo(java.lang.String host)
Returns the user data corresponding to the given host name |
static Cookies |
instance()
Returns an instance of Cookies Note: Implements Singleton Design Pattern |
static void |
main(java.lang.String[] args)
|
void |
putCookie(java.lang.String host,
User user)
Adds the passed user info for the given host |
void |
save()
Saves the cookies to file |
java.lang.String |
toString()
returns the string representation of the contents |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected Cookies()
Method Detail |
public static Cookies instance()
public User getUserInfo(java.lang.String host)
host
- The name of the host for whom the corresponding information
is requested.
public void putCookie(java.lang.String host, User user)
host
- The name of the host for whom to add informationuser
- The user info to be addedpublic void save()
public java.lang.String toString()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |