multivalent.net
Class HttpHeaders
java.lang.Object
multivalent.VObject
multivalent.Behavior
multivalent.net.HttpHeaders
- public class HttpHeaders
- extends Behavior
Set HTTP headers: User-Agent, Accept, Accept-Encoding, Keep-Alive, Referer [sic], and so on.
Possible to masquerade as another user agent by setting the agent
attribute in the hub.
- Version:
- $Revision: 1.3 $ $Date: 2002/10/26 17:40:29 $
Method Summary |
void |
restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
Takes the place of a constructor's initialization functions; that is, it is invoked exactly once immediately after object instantiation. |
boolean |
semanticEventBefore(SemanticEvent se,
java.lang.String msg)
Stuffs "User-Agent: Multivalent m.n" in headers of HTTP traffic. |
Methods inherited from class multivalent.Behavior |
buildAfter, buildBefore, checkRep, clipboardAfter, clipboardBefore, createUI, destroy, eventAfter, eventBefore, formatAfter, formatBefore, getBrowser, getDocument, getInstance, getInstance, getLayer, getLogger, getName, getPreference, getRoot, isEditable, paintAfter, paintBefore, putPreference, redo, restoreChildren, save, semanticEventAfter, 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 |
ATTR_USER_AGENT
public static final java.lang.String ATTR_USER_AGENT
- See Also:
- Constant Field Values
ATTR_ACCEPT_LANGUAGE
public static final java.lang.String ATTR_ACCEPT_LANGUAGE
- See Also:
- Constant Field Values
HttpHeaders
public HttpHeaders()
semanticEventBefore
public boolean semanticEventBefore(SemanticEvent se,
java.lang.String msg)
- Stuffs "User-Agent: Multivalent m.n" in headers of HTTP traffic. Done in before so it can be overridden.
- Overrides:
semanticEventBefore
in class Behavior
restore
public void restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
- Description copied from class:
Behavior
- Takes the place of a constructor's initialization functions; that is, it is invoked exactly once immediately after object instantiation.
When restored from hub, passed XML content subtree if any as first parameter and attributes from XML tag's attributes.
This protocol cannot be short-circuited.
- Overrides:
restore
in class Behavior