public class HttpRequestMessageParser extends HttpMessageParser
| Modifier and Type | Field and Description |
|---|---|
int |
maxBytes |
boolean |
strict |
COLON, CR, CRLF, HTAB, LF, METHOD_CONNECT, METHOD_CONNECT_STRING, METHOD_DELETE, METHOD_DELETE_STRING, METHOD_GET, METHOD_GET_STRING, METHOD_HEAD, METHOD_HEAD_STRING, METHOD_POST, METHOD_POST_STRING, METHOD_PUT, METHOD_PUT_STRING, METHOD_TRACE, METHOD_TRACE_STRING, METHOD_UNK, METHOD_UNK_STRING, REASON_UNK, SP, STATUS_UNK, UTF8, VERSION_0, VERSION_0_STATUS, VERSION_1, VERSION_1_STATUS, VERSION_1_UNK, VERSION_9, VERSION_9_STATUS| Constructor and Description |
|---|
HttpRequestMessageParser() |
| Modifier and Type | Method and Description |
|---|---|
int |
parse(byte[] buf,
int len,
HttpRequestMessageObserver obs) |
HttpRequestMessage |
parse(InputStream is) |
int |
parse(InputStream is,
HttpRequestMessageObserver obs) |
int |
parseLax(byte[] buf,
int len,
HttpRequestMessageObserver obs) |
protected int |
parseMethodLax(byte[] buf,
int start,
int len) |
protected int |
parseMethodStrict(byte[] buf,
int start,
int len) |
int |
parseStrict(byte[] buf,
int len,
HttpRequestMessageObserver obs) |
parseVersionLax, parseVersionStrictpublic HttpRequestMessage parse(InputStream is) throws HttpParseException, IOException
HttpParseExceptionIOExceptionpublic int parse(InputStream is, HttpRequestMessageObserver obs) throws HttpParseException, IOException
HttpParseExceptionIOExceptionpublic int parse(byte[] buf,
int len,
HttpRequestMessageObserver obs)
throws HttpParseException,
IOException
HttpParseExceptionIOExceptionpublic int parseStrict(byte[] buf,
int len,
HttpRequestMessageObserver obs)
throws HttpParseException
HttpParseExceptionpublic int parseLax(byte[] buf,
int len,
HttpRequestMessageObserver obs)
throws HttpParseException
HttpParseExceptionprotected int parseMethodStrict(byte[] buf,
int start,
int len)
throws HttpParseException
HttpParseExceptionprotected int parseMethodLax(byte[] buf,
int start,
int len)
throws HttpParseException
HttpParseExceptionCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.