Package com.ibm.wsspi.http
Class HttpCookie
java.lang.Object
com.ibm.wsspi.http.HttpCookie
HTTP cookie object, similar to the J2EE servlet cookie object.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()getAttribute(String name) Query a generic attribute of this cookie.Query the comment attribute of this cookie.Query the domain attribute of this cookie.intQuery the max-age attribute of this cookie.getName()Query the name of this cookie.getPath()Query the path attribute of this cookie.getValue()Query the value of this cookie.intQuery the version attribute of this cookie.booleanQuery if the Discard attribute is set.booleanQuery if the HttpOnly attribute is set.booleanisSecure()Query the secure-flag attribute of this cookie.voidsetAttribute(String name, String value) Set a generic attribute on this cookie.voidsetComment(String comment) Set the comment attribute of this cookie.voidsetDiscard(boolean flag) Set the Discard attribute flag.voidSet the domain attribute of this cookie.voidsetHttpOnly(boolean flag) Set the HttpOnly special attribute flag.voidsetMaxAge(int age) Set the max-age attribute of this cookie.voidSet the path attribute of this cookie.voidsetSecure(boolean flag) Set the secure-flag attribute of this cookie.voidsetVersion(int version) Set the version attribute of this cookie to the input value.
- 
Constructor Details- 
HttpCookieConstructor.- Parameters:
- name-
- value-
 
 
- 
- 
Method Details- 
getNameQuery the name of this cookie.- Returns:
- String
 
- 
getValueQuery the value of this cookie. This might be null, an empty string, or a full valid string.- Returns:
- String
 
- 
getCommentQuery the comment attribute of this cookie.- Returns:
- String
 
- 
getPathQuery the path attribute of this cookie.- Returns:
- String
 
- 
getDomainQuery the domain attribute of this cookie.- Returns:
- String
 
- 
isSecurepublic boolean isSecure()Query the secure-flag attribute of this cookie.- Returns:
- String
 
- 
getMaxAgepublic int getMaxAge()Query the max-age attribute of this cookie.- Returns:
- String
 
- 
setAttributeSet a generic attribute on this cookie.- Parameters:
- name-
- value-
 
- 
getAttributeQuery a generic attribute of this cookie.- Parameters:
- name-
- Returns:
- String
 
- 
getVersionpublic int getVersion()Query the version attribute of this cookie.- Returns:
- int
 
- 
setVersionpublic void setVersion(int version) Set the version attribute of this cookie to the input value. Valid options include 0 and 1 only.- Parameters:
- version-
 
- 
setCommentSet the comment attribute of this cookie.- Parameters:
- comment-
 
- 
setDomainSet the domain attribute of this cookie.- Parameters:
- domain-
 
- 
setPathSet the path attribute of this cookie.- Parameters:
- path-
 
- 
setSecurepublic void setSecure(boolean flag) Set the secure-flag attribute of this cookie.- Parameters:
- flag-
 
- 
setMaxAgepublic void setMaxAge(int age) Set the max-age attribute of this cookie.- Parameters:
- age-
 
- 
isHttpOnlypublic boolean isHttpOnly()Query if the HttpOnly attribute is set.- Returns:
- boolean
 
- 
setHttpOnlypublic void setHttpOnly(boolean flag) Set the HttpOnly special attribute flag.- Parameters:
- flag-
 
- 
isDiscardpublic boolean isDiscard()Query if the Discard attribute is set.- Returns:
- boolean
 
- 
setDiscardpublic void setDiscard(boolean flag) Set the Discard attribute flag.- Parameters:
- flag-
 
- 
clone
- 
getAttributes
 
-