|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.html.Cookie
This class has been deprecated. Use javax.servlet.http.Cookie.
The Internic RFC is available at http://www.faqs.org/rfcs/rfc2109.html. A description of Netscape's implementation is available at http://home.netscape.com/newsref/std/cookie_spec.html.
Constructor Summary | |
Cookie(java.lang.String cookiestring)
Deprecated. Constructs a Cookie from a semicolon-delimited String, composed after the pattern "name;value". |
|
Cookie(java.lang.String[] namevalue)
Deprecated. Constructs a Cookie from the specified array of Strings, composed after the pattern "name=value". |
|
Cookie(java.lang.String[] properties,
long expiration,
java.lang.String path,
java.lang.String domain,
boolean secure)
Deprecated. Constructs a Cookie from the specified array of Strings, composed after the pattern "name=value", the date of the expiration, the path, the domain, and a boolean that sets whether the Cookie is secure. |
|
Cookie(java.lang.String name,
java.lang.String value)
Deprecated. Constructs a Cookie. |
Method Summary | |
java.lang.String[] |
getCookieNames()
Deprecated. Returns the name/value pairs of a Cookie as an array of Strings. |
java.lang.String |
getValue(java.lang.String val)
Deprecated. Gets the values for a Cookie property name. |
java.lang.String |
getValues(java.lang.String val)
Deprecated. For backwards compatibility. |
void |
setDomain(java.lang.String domain)
Deprecated. Sets the domain of a Cookie. |
void |
setExpires(long expiration)
Deprecated. Sets the expiration of a Cookie. |
void |
setMaxAge(int i)
Deprecated. Sets the expiration to the specified number of seconds. |
void |
setPath(java.lang.String path)
Deprecated. Sets the path of a Cookie. |
void |
setSecure(boolean flag)
Deprecated. Determines whether the Cookie is secure. |
java.lang.String |
toString()
Deprecated. Returns a String representation of a Cookie. |
static java.lang.String |
toString(Cookie[] cookie)
Deprecated. Returns a String representation of any number of Cookies' ingredients. |
void |
write(java.io.PrintStream ps)
Deprecated. Writes a Cookie to the specified printstream. |
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
- Name of Cookievalue
- Value of Cookiepublic Cookie(java.lang.String[] namevalue)
namevalues
- Array of Stringspublic Cookie(java.lang.String[] properties, long expiration, java.lang.String path, java.lang.String domain, boolean secure)
properties
- Array of name/value pairsexpiration
- When the Cookie expirespath
- Path name of Cookiedomain
- Domain name of Cookiesecure
- True is Cookie should be securepublic Cookie(java.lang.String cookiestring)
cookiestring
- Name;value pairMethod Detail |
public java.lang.String[] getCookieNames()
public void setExpires(long expiration)
expiration
- Date when the cookie should expirepublic void setMaxAge(int i)
i
- Number of seconds a Cookie should livepublic void setPath(java.lang.String path)
path
- Path namepublic void setDomain(java.lang.String domain)
domain
- Domain namepublic void setSecure(boolean flag)
flag
- True if Cookie should be securepublic void write(java.io.PrintStream ps) throws java.io.IOException
ps
- PrintStreampublic java.lang.String toString()
public java.lang.String getValue(java.lang.String val)
val
- Name of a propertypublic java.lang.String getValues(java.lang.String val)
public static java.lang.String toString(Cookie[] cookie)
cookie
- Cookies
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |