Class ServerCookie
java.lang.Object
com.predic8.membrane.core.http.cookie.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.
- Author:
- unknown (Tomcat)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendCookieValue(StringBuffer headerBuf, int version, String name, String value, String path, String domain, String comment, int maxAge, boolean isSecure, boolean isHttpOnly) intgetName()getPath()booleangetValue()intvoidrecycle()voidsetMaxAge(int expiry) voidsetSecure(boolean flag) voidsetVersion(int v) toString()
-
Constructor Details
-
ServerCookie
public ServerCookie()
-
-
Method Details
-
recycle
public void recycle() -
getComment
-
getDomain
-
setMaxAge
public void setMaxAge(int expiry) -
getMaxAge
public int getMaxAge() -
getPath
-
setSecure
public void setSecure(boolean flag) -
getSecure
public boolean getSecure() -
getName
-
getValue
-
getVersion
public int getVersion() -
setVersion
public void setVersion(int v) -
toString
-
appendCookieValue
-