|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecterland.util.CookieHandler
public class CookieHandler
Makes it possible to read, write and delete cookies from an applet
Field Summary | |
---|---|
protected Applet |
applet
The applet object which will be used to access the cookies |
Constructor Summary | |
---|---|
CookieHandler(Applet applet)
|
Method Summary | |
---|---|
protected String |
cleanValue(String value)
|
protected void |
deleteCookie(String name)
Delete a cookie |
void |
delParameter(String name)
Delete a parameter |
protected String |
getCookie()
Reads all available cookies |
protected String |
getCookie(String name)
Read a cookie |
String |
getParameter(String name)
Get a parameter value |
protected void |
setCookie(String name,
String value)
Write a cookie |
void |
setParameter(String name,
String value)
Set a parameter value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Applet applet
Constructor Detail |
---|
public CookieHandler(Applet applet)
applet
- The applet object which should be used to access the cookiesMethod Detail |
---|
protected String getCookie()
protected String getCookie(String name)
name
- The name of the cookie
protected String cleanValue(String value)
protected void setCookie(String name, String value)
name
- The name of the cookievalue
- The value to writeprotected void deleteCookie(String name)
name
- The name of the cookiepublic String getParameter(String name)
ParameterValueStorageInterface
getParameter
in interface ParameterValueStorageInterface
name
- The name of the parameter
public void setParameter(String name, String value)
ParameterValueStorageInterface
setParameter
in interface ParameterValueStorageInterface
name
- The name of the parametervalue
- The value of the parameterpublic void delParameter(String name)
ParameterValueStorageInterface
delParameter
in interface ParameterValueStorageInterface
name
- The name of the parameter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |