Project JXTA

net.jxta.ext.http
Class Message

java.lang.Object
  extended by 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]

Field Summary
static String ACCEPT
           
static String ACCEPT_ALL
           
static String ACCEPT_CHARSET
           
static String CHARSET
           
static String CONNECTION
           
static String CONTENT_LENGTH
           
static String CONTENT_TYPE
           
static String COOKIE
           
static String GET
           
static String HTTP
           
static String HTTPS
           
static String KEEP_ALIVE
           
static String POST
           
static String SESSION_ID
           
static String SESSION_ID_POSTFIX
           
static String SESSION_ID_PREFIX
           
static String TROLL
           
static String URL_FORM_ENCODED
           
static String USER_AGENT
           
 
Constructor Summary
Message()
           
Message(Map headers)
           
Message(Map headers, String body)
           
Message(String body)
           
 
Method Summary
 String getBody()
           
 String getHeader(String key)
           
 Iterator getHeaderKeys()
           
 Iterator getHeaders(String key)
           
 URL getReferer()
           
 String getSessionId()
           
 boolean hasBody()
           
 void removeHeader(String key)
           
 void removeHeaders()
           
 void setBody(String body)
           
 void setHeader(String key, Object value)
           
 void setHeader(String key, String value)
           
 void setHeaders(Map headers)
           
 void setReferer(URL referer)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Message

public Message()

Message

public Message(Map headers)

Message

public Message(String body)

Message

public Message(Map headers,
               String body)
Method Detail

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

JXTA J2SE