|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Generic interface for storing client-side state information, which can be passed back to the server, and have security checks. COmmonly, these are called "Cookies".
Method Summary | |
String |
getName()
Returns the name of the cookie. |
String |
getValue()
Returns the value of the cookie. |
boolean |
isExpired()
Checks if the cookie has expired, and hence needs to be removed from the server. |
boolean |
receiveSecurityCheck(IHttpResponseMessage msg)
Checks if this cookie, which was loaded from the header of the given message, passes all security checks for the given set command by the server. |
boolean |
sendSecurityCheck(URL server)
Checks if the given URL that this cookie is being passed to correctly passes all security checks. |
void |
setValue(String newValue)
Assigns a new value to a cookie after the cookie is created. |
String |
toString(boolean append,
boolean serverSet)
Converts this cookie to a header-compatible string. |
Method Detail |
public String getName()
public String getValue()
setValue(String)
public void setValue(String newValue)
With Version 0 cookies, values should not contain white space, brackets, parentheses, equals signs, commas, double quotes, slashes, question marks, at signs, colons, and semicolons. Empty values may not behave the same way on all browsers.
newValue
- a String specifying the new valuegetValue()
public boolean sendSecurityCheck(URL server)
server
- the URL that this cookie is being sent to.receiveSecurityCheck( IHttpResponseMessage )
,
isExpired()
public boolean receiveSecurityCheck(IHttpResponseMessage msg)
public boolean isExpired()
public String toString(boolean append, boolean serverSet)
append
- true if this cookie is to be appended
to the end of another cookie on the same header.serverSet
- true if this cookie is for the
server to send to the client, or false if this
cookie is being sent back to the server by the client.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |