multivalent.net

Class 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 $

Field Summary
static StringATTR_ACCEPT_LANGUAGE
static StringATTR_USER_AGENT
Method Summary
voidrestore(ESISNode n, Map<String,Object> attr, Layer layer)
booleansemanticEventBefore(SemanticEvent se, String msg)
Stuffs "User-Agent: Multivalent m.n" in headers of HTTP traffic.

Field Detail

ATTR_ACCEPT_LANGUAGE

public static final String ATTR_ACCEPT_LANGUAGE

ATTR_USER_AGENT

public static final String ATTR_USER_AGENT

Method Detail

restore

public void restore(ESISNode n, Map<String,Object> attr, Layer layer)

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se, String msg)
Stuffs "User-Agent: Multivalent m.n" in headers of HTTP traffic. Done in before so it can be overridden.