Class ServerCookie
java.lang.Object
org.apache.tomcat.util.http.ServerCookie
- All Implemented Interfaces:
Serializable
Server-side cookie representation. Allows recycling and uses MessageBytes as low-level representation ( and thus the
byte -> char conversion can be delayed until we know the charset ).
Tomcat.core uses this recyclable object to represent cookies, and the facade will convert it to the external representation.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of this cookie as aMessageBytesobject.getPath()getValue()Returns the value of this cookie as aMessageBytesobject.intvoidrecycle()Resets this cookie's name and value so it can be reused.voidsetVersion(int v) toString()
-
Constructor Details
-
ServerCookie
public ServerCookie()Creates a new empty ServerCookie instance.
-
-
Method Details
-
recycle
public void recycle()Resets this cookie's name and value so it can be reused. -
getComment
-
getDomain
-
getPath
-
getName
Returns the name of this cookie as aMessageBytesobject.- Returns:
- the cookie name
-
getValue
Returns the value of this cookie as aMessageBytesobject.- Returns:
- the cookie value
-
getVersion
public int getVersion() -
setVersion
public void setVersion(int v) -
toString
-