public class Request extends Message
Modifier and Type | Field and Description |
---|---|
static String |
METHOD_CONNECT |
static String |
METHOD_DELETE |
static String |
METHOD_GET |
static String |
METHOD_HEAD |
static String |
METHOD_OPTIONS |
static String |
METHOD_POST |
static String |
METHOD_PUT |
static String |
METHOD_TRACE |
Constructor and Description |
---|
Request() |
Modifier and Type | Method and Description |
---|---|
void |
create(String method,
String uri,
String protocol,
Header header,
InputStream in) |
protected void |
createBody(InputStream in) |
String |
getMethod() |
String |
getName() |
String |
getStartLine() |
String |
getUri() |
boolean |
isBindTargetConnectionToIncoming()
NTLM and SPNEGO authentication schemes authorize HTTP connections, not single requests.
|
boolean |
isBodyEmpty() |
boolean |
isCONNECTRequest() |
boolean |
isDELETERequest() |
boolean |
isGETRequest() |
boolean |
isHEADRequest() |
boolean |
isOPTIONSRequest() |
boolean |
isPOSTRequest() |
void |
parseStartLine(InputStream in) |
void |
setMethod(String method) |
void |
setUri(String uri) |
getBody, getBodyAsStream, getCharset, getErrorMessage, getHeader, getVersion, hasMsgReleased, isCSS, isDeflate, isGzip, isHTML, isHTTP10, isHTTP11, isImage, isJavaScript, isJSON, isKeepAlive, isXML, read, readBody, release, setBody, setBodyContent, setErrorMessage, setHeader, setVersion, toString, write, writeStartLine
public static final String METHOD_GET
public static final String METHOD_POST
public static final String METHOD_HEAD
public static final String METHOD_DELETE
public static final String METHOD_PUT
public static final String METHOD_TRACE
public static final String METHOD_CONNECT
public static final String METHOD_OPTIONS
public void parseStartLine(InputStream in) throws IOException, EndOfStreamException
parseStartLine
in class Message
IOException
EndOfStreamException
public String getMethod()
public void setMethod(String method)
public String getUri()
public void setUri(String uri)
public void create(String method, String uri, String protocol, Header header, InputStream in) throws IOException
IOException
public String getStartLine()
getStartLine
in class Message
protected void createBody(InputStream in) throws IOException
createBody
in class Message
IOException
public boolean isHEADRequest()
public boolean isGETRequest()
public boolean isPOSTRequest()
public boolean isDELETERequest()
public boolean isCONNECTRequest()
public boolean isOPTIONSRequest()
public boolean isBodyEmpty() throws IOException
isBodyEmpty
in class Message
IOException
public boolean isBindTargetConnectionToIncoming()
Copyright © 2012. All Rights Reserved.