|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.transport.http.client.HttpCookie
public class HttpCookie
An object which represents an HTTP cookie. Can be constructed by parsing a string from the set-cookie: header. Syntax: Set-Cookie: NAME=VALUE; expires=DATE; path=PATH; domain=DOMAIN_NAME; secure All but the first field are optional.
| Constructor Summary | |
|---|---|
HttpCookie(Date expirationDate,
String nameAndValue,
String path,
String domain,
boolean isSecure)
|
|
HttpCookie(String cookieString)
|
|
HttpCookie(URL url,
String cookieString)
|
|
| Method Summary | |
|---|---|
String |
getDomain()
Returns the domain of the cookie as it was presented |
Date |
getExpirationDate()
|
String |
getName()
Returns just the name part of the cookie |
String |
getNameValue()
|
String |
getPath()
|
(package private) boolean |
hasExpired()
|
(package private) boolean |
isSaveable()
Returns true if the cookie has an expiration date (meaning it's persistent), and if the date nas not expired; |
boolean |
isSecure()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpCookie(String cookieString)
public HttpCookie(Date expirationDate,
String nameAndValue,
String path,
String domain,
boolean isSecure)
public HttpCookie(URL url,
String cookieString)
| Method Detail |
|---|
public String getNameValue()
public String getName()
public String getDomain()
public String getPath()
public Date getExpirationDate()
boolean hasExpired()
boolean isSaveable()
public boolean isSecure()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||