net.jxta.ext.http
Class Message
java.lang.Object
net.jxta.ext.http.Message
public class Message
- extends Object
- Version:
- $Id: Message.java,v 1.4 2004/05/16 17:57:33 gonzo Exp $
- Author:
- james todd [gonzo at jxta dot org]
SESSION_ID
public static final String SESSION_ID
- See Also:
- Constant Field Values
SESSION_ID_PREFIX
public static final String SESSION_ID_PREFIX
- See Also:
- Constant Field Values
SESSION_ID_POSTFIX
public static final String SESSION_ID_POSTFIX
- See Also:
- Constant Field Values
COOKIE
public static final String COOKIE
- See Also:
- Constant Field Values
CONTENT_LENGTH
public static final String CONTENT_LENGTH
- See Also:
- Constant Field Values
CONTENT_TYPE
public static final String CONTENT_TYPE
- See Also:
- Constant Field Values
USER_AGENT
public static final String USER_AGENT
- See Also:
- Constant Field Values
TROLL
public static final String TROLL
- See Also:
- Constant Field Values
ACCEPT
public static final String ACCEPT
- See Also:
- Constant Field Values
ACCEPT_CHARSET
public static final String ACCEPT_CHARSET
- See Also:
- Constant Field Values
ACCEPT_ALL
public static final String ACCEPT_ALL
- See Also:
- Constant Field Values
CHARSET
public static final String CHARSET
- See Also:
- Constant Field Values
URL_FORM_ENCODED
public static final String URL_FORM_ENCODED
- See Also:
- Constant Field Values
CONNECTION
public static final String CONNECTION
- See Also:
- Constant Field Values
KEEP_ALIVE
public static final String KEEP_ALIVE
- See Also:
- Constant Field Values
HTTP
public static final String HTTP
- See Also:
- Constant Field Values
HTTPS
public static final String HTTPS
- See Also:
- Constant Field Values
GET
public static final String GET
- See Also:
- Constant Field Values
POST
public static final String POST
- See Also:
- Constant Field Values
Message
public Message()
Message
public Message(Map headers)
Message
public Message(String body)
Message
public Message(Map headers,
String body)
getHeader
public String getHeader(String key)
getHeaders
public Iterator getHeaders(String key)
getHeaderKeys
public Iterator getHeaderKeys()
setHeader
public void setHeader(String key,
String value)
setHeader
public void setHeader(String key,
Object value)
setHeaders
public void setHeaders(Map headers)
removeHeader
public void removeHeader(String key)
removeHeaders
public void removeHeaders()
getSessionId
public String getSessionId()
getBody
public String getBody()
setBody
public void setBody(String body)
hasBody
public boolean hasBody()
setReferer
public void setReferer(URL referer)
getReferer
public URL getReferer()
toString
public String toString()
- Overrides:
toString
in class Object