|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.www.http.BasicValue org.w3c.www.http.HttpSetCookieList
public class HttpSetCookieList
Field Summary |
---|
Fields inherited from class org.w3c.www.http.BasicValue |
---|
isValid, raw, rlen, roff |
Constructor Summary | |
---|---|
HttpSetCookieList(HttpSetCookie[] sc)
|
Method Summary | |
---|---|
void |
addBytes(byte[] buf,
int off,
int len)
HeaderValue implementation - Add these bytes to the header raw value. |
void |
addSetCookie(HttpSetCookie setCookie)
|
HttpSetCookie |
addSetCookie(java.lang.String name,
java.lang.String value)
Add a specific cookie to the SetCookie header value. |
protected void |
checkByteValues()
|
protected int |
copyLength()
|
protected void |
emitCookie(java.io.OutputStream out,
int cookie)
|
protected void |
emitCopyCookie(java.io.OutputStream out,
int cookie)
|
HttpSetCookie |
getSetCookie(java.lang.String name)
Get the cookie infos associated with the given cookie name, if any. |
HttpSetCookie[] |
getSetCookies()
|
java.lang.Object |
getValue()
HeaderValue implemenntation - Get this header value. |
protected boolean |
isOriginal()
|
protected int |
length()
|
protected void |
parse()
parse set cookie header according to the specification: http://www.netscape.com/newsref/std/cookie_spec.html |
boolean |
removeSetCookie(java.lang.String name)
Remove a predefined cookie from this SetCookie header. |
protected void |
updateByteValue()
Update the RFC822 compatible header value for this object. |
Methods inherited from class org.w3c.www.http.BasicValue |
---|
appendValue, checkByteValue, clone, emit, error, invalidateByteValue, setBytes, setString, toExternalForm, toString, validate |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HttpSetCookieList(HttpSetCookie[] sc)
Method Detail |
---|
protected int length()
protected int copyLength()
protected boolean isOriginal()
protected void emitCookie(java.io.OutputStream out, int cookie) throws java.io.IOException
java.io.IOException
protected void emitCopyCookie(java.io.OutputStream out, int cookie) throws java.io.IOException
java.io.IOException
protected final void checkByteValues()
protected void updateByteValue()
BasicValue
updateByteValue
in class BasicValue
public void addBytes(byte[] buf, int off, int len)
addBytes
in interface HeaderValue
addBytes
in class BasicValue
buf
- The byte buffer containing some part of the header value.off
- The offset of the header value in above buffer.len
- The length of the header value in above buffer.protected void parse() throws HttpParserException
parse
in class BasicValue
HttpParserException
- if parsing failed.public java.lang.Object getValue()
BasicValue
getValue
in interface HeaderValue
getValue
in class BasicValue
public HttpSetCookie addSetCookie(java.lang.String name, java.lang.String value)
name
- The cookie's name.value
- The cookie's value.public void addSetCookie(HttpSetCookie setCookie)
public boolean removeSetCookie(java.lang.String name)
name
- The name of the cookie to remove.
public HttpSetCookie getSetCookie(java.lang.String name)
name
- The cookie's name.
public HttpSetCookie[] getSetCookies()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |