Package com.sun.xml.rpc.client.http
Class HttpCookie
- java.lang.Object
-
- com.sun.xml.rpc.client.http.HttpCookie
-
- All Implemented Interfaces:
Serializable
public class HttpCookie extends Object implements Serializable
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.- Author:
- JAX-RPC Development Team
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpCookie(String cookieString)HttpCookie(URL url, String cookieString)HttpCookie(Date expirationDate, String nameAndValue, String path, String domain, boolean isSecure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDomain()Returns the domain of the cookie as it was presentedDategetExpirationDate()StringgetName()Returns just the name part of the cookieStringgetNameValue()StringgetPath()booleanisSecure()StringtoString()
-
-
-
Method Detail
-
getNameValue
public String getNameValue()
-
getName
public String getName()
Returns just the name part of the cookie
-
getDomain
public String getDomain()
Returns the domain of the cookie as it was presented
-
getPath
public String getPath()
-
getExpirationDate
public Date getExpirationDate()
-
isSecure
public boolean isSecure()
-
-