com.sun.slamd.common.http.util
Class ByteCookie

java.lang.Object
  extended by com.sun.slamd.common.http.util.ByteCookie

public class ByteCookie
extends java.lang.Object

This class provides a mechanism for interacting with cookies.

Author:
cmort

Constructor Summary
ByteCookie()
          Creates a new instance of Cookie.
 
Method Summary
 java.lang.String cookieForServer()
          Retrieves the cookie in a form that may be sent to the server.
 byte[] getDomain()
          Getter for property domain.
 byte[] getExpires()
          Getter for property expires.
 byte[] getName()
          Getter for property name.
 byte[] getPath()
          Getter for property path.
 byte[] getServer()
          Getter for property server.
 byte[] getValue()
          Getter for property value.
 boolean isSecure()
          Getter for property isSecure.
 void setDomain(byte[] domain)
          Setter for property domain.
 void setExpires(byte[] expires)
          Setter for property expires.
 void setIsSecure(boolean isSecure)
          Setter for property isSecure.
 void setName(byte[] name)
          Setter for property name.
 void setPath(byte[] path)
          Setter for property path.
 void setServer(byte[] server)
          Setter for property server.
 void setValue(byte[] value)
          Setter for property value.
 java.lang.String toString()
          Retrieves a string representation of this byte cookie.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteCookie

public ByteCookie()
Creates a new instance of Cookie.

Method Detail

getName

public byte[] getName()
Getter for property name.

Returns:
Value of property name.

setName

public void setName(byte[] name)
Setter for property name.

Parameters:
name - New value of property name.

getValue

public byte[] getValue()
Getter for property value.

Returns:
Value of property value.

setValue

public void setValue(byte[] value)
Setter for property value.

Parameters:
value - New value of property value.

getDomain

public byte[] getDomain()
Getter for property domain.

Returns:
Value of property domain.

setDomain

public void setDomain(byte[] domain)
Setter for property domain.

Parameters:
domain - New value of property domain.

getPath

public byte[] getPath()
Getter for property path.

Returns:
Value of property path.

setPath

public void setPath(byte[] path)
Setter for property path.

Parameters:
path - New value of property path.

isSecure

public boolean isSecure()
Getter for property isSecure.

Returns:
Value of property isSecure.

setIsSecure

public void setIsSecure(boolean isSecure)
Setter for property isSecure.

Parameters:
isSecure - New value of property isSecure.

getExpires

public byte[] getExpires()
Getter for property expires.

Returns:
Value of property expires.

setExpires

public void setExpires(byte[] expires)
Setter for property expires.

Parameters:
expires - New value of property expires.

toString

public java.lang.String toString()
Retrieves a string representation of this byte cookie.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this byte cookie.

cookieForServer

public java.lang.String cookieForServer()
Retrieves the cookie in a form that may be sent to the server.

Returns:
The cookie in a form that may be sent to the server.

getServer

public byte[] getServer()
Getter for property server.

Returns:
Value of property server.

setServer

public void setServer(byte[] server)
Setter for property server.

Parameters:
server - New value of property server.