Package org.apache.tomcat.util.http
Class ServerCookie
- java.lang.Object
- 
- org.apache.tomcat.util.http.ServerCookie
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class ServerCookie extends java.lang.Object implements java.io.SerializableServer-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:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ServerCookie()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageBytesgetComment()MessageBytesgetDomain()MessageBytesgetName()MessageBytesgetPath()MessageBytesgetValue()intgetVersion()voidrecycle()voidsetVersion(int v)java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
recyclepublic void recycle() 
 - 
getCommentpublic MessageBytes getComment() 
 - 
getDomainpublic MessageBytes getDomain() 
 - 
getPathpublic MessageBytes getPath() 
 - 
getNamepublic MessageBytes getName() 
 - 
getValuepublic MessageBytes getValue() 
 - 
getVersionpublic int getVersion() 
 - 
setVersionpublic void setVersion(int v) 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-