|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ooweb.http.Cookie
public class Cookie
Cookie represents an HTTP cookie and specifies all of the mandatory and optional values that a cookie may have,
Constructor Summary | |
---|---|
Cookie(java.lang.String name,
java.lang.String value)
Create a cookie using the minimum required information of name and value. |
|
Cookie(java.lang.String name,
java.lang.String value,
java.util.Date expires,
java.lang.String domain,
java.lang.String path,
boolean secure)
Create a cookie supplying all of the required and optional information needed. |
Method Summary | |
---|---|
java.lang.String |
getDomain()
|
java.util.Date |
getExpires()
|
java.lang.String |
getHeaderValue()
|
java.lang.String |
getName()
|
java.lang.String |
getPath()
|
java.lang.String |
getValue()
|
boolean |
isSecure()
|
java.lang.String |
toString()
Can be used to write the actual lcookie into an HTTP response stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Cookie(java.lang.String name, java.lang.String value)
name
- the name of the cookievalue
- the value of the cookiepublic Cookie(java.lang.String name, java.lang.String value, java.util.Date expires, java.lang.String domain, java.lang.String path, boolean secure)
name
- the name of the cookievalue
- the value of the cookieexpires
- the date after which the cookie should no longer be sent
to the server by the clientdomain
- the domain for which this cookie is valid. User agents
should not transmit a cookie to any other domain than that specified.path
- the optional path within the domain that a cookie should be
transmitted for,secure
- if true, instructs the user agent to only send the cookie if
it believes the link to be secure. In practice, this means over HTTPS.Method Detail |
---|
public java.lang.String getDomain()
public java.util.Date getExpires()
public java.lang.String getName()
public java.lang.String getPath()
public boolean isSecure()
public java.lang.String getValue()
public java.lang.String getHeaderValue()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |