public class HttpRequest extends HttpMessage
| Modifier and Type | Field and Description |
|---|---|
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 |
body, header, version| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMethod() |
String |
getURI() |
URL |
getURL() |
protected void |
parseStartLine(String line)
This method must be overwritten
|
getBody, getBodyAsString, getHeader, getHeader, getHeaderNames, getMessageHeader, getVersion, hasBody, toStringpublic static final String ACCEPT
public static final String ACCEPT_CHARSET
public static final String ACCEPT_ENCODING
public static final String ACCEPT_LANGUAGE
public static final String AUTHORIZATION
public static final String EXPECT
public static final String FROM
public static final String HOST
public static final String IF_MATCH
public static final String IF_MODIFIED_SINCE
public static final String IF_NONE_MATCH
public static final String IF_RANGE
public static final String IF_UNMODIFIED_SINCE
public static final String MAX_FORWARDS
public static final String PROXY_AUTHORIZATION
public static final String RANGE
public static final String REFERER
public static final String TE
public static final String USER_AGENT
public HttpRequest(String reqHeader, byte[] reqBody) throws ProtocolException
reqData[0] and
optionally the request-body in reqData[1].reqData - ExceptionProtocolExceptionpublic HttpRequest(HttpHeader h, byte[] reqBody) throws ProtocolException
ProtocolExceptionprotected void parseStartLine(String line) throws MessageFormatException
HttpMessageparseStartLine in class HttpMessageMessageFormatExceptionpublic String getMethod()
public String getURI()
public URL getURL()
Copyright © 2015 jwall.org. All Rights Reserved.