com.cometway.net
Class CookiePropsContainer

java.lang.Object
  extended by com.cometway.props.AbstractPropsContainer
      extended by com.cometway.net.CookiePropsContainer
All Implemented Interfaces:
IPropsContainer

public class CookiePropsContainer
extends AbstractPropsContainer

This PropsContainer is used by the HTTPLoader to store cookies


Constructor Summary
CookiePropsContainer()
           
CookiePropsContainer(java.lang.String cookie)
           
 
Method Summary
 void copy(IPropsContainer ipc)
          copy the properties in the current container to another container
protected  java.lang.String decode(java.lang.String s)
           
protected  java.lang.String encode(java.lang.String s)
           
 java.util.Enumeration enumerateProps()
          list the properties in the current container
protected  java.lang.String getCookie()
           
protected  java.lang.Object getCookieValue(java.lang.String cookie, java.lang.String name)
           
 java.lang.Object getProperty(java.lang.String key)
          Returns a reference to a named object.
 boolean removeProperty(java.lang.String key)
          Removes a named object from the container.
protected  void setCookie(java.lang.String cookie)
           
 void setProperty(java.lang.String key, java.lang.Object value)
          Adds or changes a named object to the one specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookiePropsContainer

public CookiePropsContainer()

CookiePropsContainer

public CookiePropsContainer(java.lang.String cookie)
Method Detail

decode

protected java.lang.String decode(java.lang.String s)

encode

protected java.lang.String encode(java.lang.String s)

getCookie

protected java.lang.String getCookie()

getCookieValue

protected java.lang.Object getCookieValue(java.lang.String cookie,
                                          java.lang.String name)

getProperty

public java.lang.Object getProperty(java.lang.String key)
Description copied from interface: IPropsContainer
Returns a reference to a named object.

Parameters:
key - the name of the object to retrieve.
Returns:
an object reference.

removeProperty

public boolean removeProperty(java.lang.String key)
Description copied from interface: IPropsContainer
Removes a named object from the container.

Parameters:
key - the name of the object to remove.
Returns:
true if the object existed and was removed; false otherwise.

setCookie

protected void setCookie(java.lang.String cookie)

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object value)
Description copied from interface: IPropsContainer
Adds or changes a named object to the one specified.

Parameters:
key - the name of the object to add or change.
value - a reference to the new object.

copy

public void copy(IPropsContainer ipc)
Description copied from interface: IPropsContainer
copy the properties in the current container to another container

Parameters:
ipc - the container to be copied into.

enumerateProps

public java.util.Enumeration enumerateProps()
Description copied from interface: IPropsContainer
list the properties in the current container

Returns:
an Enumeration of keys