Top Description Fields Constructors Methods
org.apache.tomcat.util.http

public Class ServerCookie

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, org.apache.tomcat.util.buf.MessageBytes

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.

Field Summary

Modifier and TypeField and Description
private final MessageBytes
private static final long
private final MessageBytes

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public MessageBytes
public MessageBytes
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

nameback to summary
private final MessageBytes name
serialVersionUIDback to summary
private static final long serialVersionUID
valueback to summary
private final MessageBytes value

Constructor Detail

ServerCookieback to summary
public ServerCookie()

Method Detail

getNameback to summary
public MessageBytes getName()
getValueback to summary
public MessageBytes getValue()
recycleback to summary
public void recycle()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override