Multivalent API

multivalent.net
Class Cookies

java.lang.Object
  extended by multivalent.VObject
      extended by multivalent.Behavior
          extended by multivalent.net.Cookies

public class Cookies
extends Behavior

Implements both Netscape spec and W3C spec .

For example:

Set-cookie: RMID=3fc51f1b38b7eeb0; expires=Fri, 31-Dec-2010 23:59:59 GMT; path=/; domain=.nytimes.com

LATER: periodically save cookies, take cookie policy (none, all, ask, only from same host) from preferences.

Version:
$Revision: 1.5 $ $Date: 2005/01/03 09:23:58 $

Field Summary
static java.lang.String FILENAME
          Filename of saved cookies.
 
Fields inherited from class multivalent.Behavior
ATTR_BEHAVIOR, name_
 
Fields inherited from class multivalent.VObject
attr_
 
Constructor Summary
Cookies()
           
 
Method Summary
 void destroy()
          Protocol.
 boolean semanticEventAfter(SemanticEvent se, java.lang.String msg)
          At semantic openedDocument, extract cookies.
 boolean semanticEventBefore(SemanticEvent se, java.lang.String msg)
          At semantic openDocument, add stored cookies to headers.
 
Methods inherited from class multivalent.Behavior
buildAfter, buildBefore, checkRep, clipboardAfter, clipboardBefore, createUI, eventAfter, eventBefore, formatAfter, formatBefore, getBrowser, getDocument, getInstance, getInstance, getLayer, getLogger, getName, getPreference, getRoot, isEditable, paintAfter, paintBefore, putPreference, redo, restore, restoreChildren, save, setName, toString, undo
 
Methods inherited from class multivalent.VObject
attrEntrySetIterator, attrKeysIterator, clearAttributes, getAttr, getAttr, getAttributes, getGlobal, getValue, hasAttributes, putAttr, removeAttr, setAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FILENAME

public static final java.lang.String FILENAME
Filename of saved cookies.

See Also:
Constant Field Values
Constructor Detail

Cookies

public Cookies()
Method Detail

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se,
                                   java.lang.String msg)
At semantic openDocument, add stored cookies to headers.

Overrides:
semanticEventBefore in class Behavior

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se,
                                  java.lang.String msg)
At semantic openedDocument, extract cookies.

Overrides:
semanticEventAfter in class Behavior

destroy

public void destroy()
Description copied from class: Behavior
Protocol. Cleans up state before being decommissioned: remove from Layer, observed nodes, .... Clients shouldn't hold a pointer/handle to object after destroy() as it is in an invalid state. This protocol cannot be short-circuited.

Overrides:
destroy in class Behavior

Multivalent API