org.jwall.web.http
Class HttpRequest

java.lang.Object
  extended by org.jwall.web.http.HttpMessage
      extended by org.jwall.web.http.HttpRequest

public class HttpRequest
extends HttpMessage


Field Summary
static String ACCEPT
           
static String ACCEPT_CHARSET
           
static String ACCEPT_ENCODING
           
static String ACCEPT_LANGUAGE
           
static String AUTHORIZATION
           
static String EXPECT
           
static String FROM
           
static String HOST
           
static String IF_MATCH
           
static String IF_MODIFIED_SINCE
           
static String IF_NONE_MATCH
           
static String IF_RANGE
           
static String IF_UNMODIFIED_SINCE
           
static String MAX_FORWARDS
           
static String PROXY_AUTHORIZATION
           
static String RANGE
           
static String REFERER
           
static String TE
           
static String USER_AGENT
           
 
Constructor Summary
HttpRequest(HttpHeader h, byte[] reqBody)
           
HttpRequest(String reqHeader)
           
HttpRequest(String reqHeader, byte[] reqBody)
          This will create a new http-request from the given String-array.
 
Method Summary
 String getMethod()
           
 String getURI()
           
 URL getURL()
           
 
Methods inherited from class org.jwall.web.http.HttpMessage
getBody, getBodyAsString, getHeader, getHeader, getHeaderNames, getMessageHeader, getVersion, hasBody, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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_ENCODING

public static final String ACCEPT_ENCODING
See Also:
Constant Field Values

ACCEPT_LANGUAGE

public static final String ACCEPT_LANGUAGE
See Also:
Constant Field Values

AUTHORIZATION

public static final String AUTHORIZATION
See Also:
Constant Field Values

EXPECT

public static final String EXPECT
See Also:
Constant Field Values

FROM

public static final String FROM
See Also:
Constant Field Values

HOST

public static final String HOST
See Also:
Constant Field Values

IF_MATCH

public static final String IF_MATCH
See Also:
Constant Field Values

IF_MODIFIED_SINCE

public static final String IF_MODIFIED_SINCE
See Also:
Constant Field Values

IF_NONE_MATCH

public static final String IF_NONE_MATCH
See Also:
Constant Field Values

IF_RANGE

public static final String IF_RANGE
See Also:
Constant Field Values

IF_UNMODIFIED_SINCE

public static final String IF_UNMODIFIED_SINCE
See Also:
Constant Field Values

MAX_FORWARDS

public static final String MAX_FORWARDS
See Also:
Constant Field Values

PROXY_AUTHORIZATION

public static final String PROXY_AUTHORIZATION
See Also:
Constant Field Values

RANGE

public static final String RANGE
See Also:
Constant Field Values

REFERER

public static final String REFERER
See Also:
Constant Field Values

TE

public static final String TE
See Also:
Constant Field Values

USER_AGENT

public static final String USER_AGENT
See Also:
Constant Field Values
Constructor Detail

HttpRequest

public HttpRequest(String reqHeader,
                   byte[] reqBody)
            throws ProtocolException
This will create a new http-request from the given String-array. The array is assumed to contain the request-header in reqData[0] and optionally the request-body in reqData[1].

Parameters:
reqData -
Throws:
Exception
ProtocolException

HttpRequest

public HttpRequest(HttpHeader h,
                   byte[] reqBody)
            throws ProtocolException
Throws:
ProtocolException

HttpRequest

public HttpRequest(String reqHeader)
            throws Exception
Throws:
Exception
Method Detail

getMethod

public String getMethod()

getURI

public String getURI()

getURL

public URL getURL()


Copyright © 2012 jwall.org. All Rights Reserved.