Class HttpRequestMessageParser
java.lang.Object
org.archive.format.http.HttpMessageParser
org.archive.format.http.HttpRequestMessageParser
- All Implemented Interfaces:
HttpConstants
-
Field Summary
FieldsFields inherited from interface org.archive.format.http.HttpConstants
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintparse(byte[] buf, int len, HttpRequestMessageObserver obs) parse(InputStream is) intparse(InputStream is, HttpRequestMessageObserver obs) intparseLax(byte[] buf, int len, HttpRequestMessageObserver obs) protected intparseMethodLax(byte[] buf, int start, int len) protected intparseMethodStrict(byte[] buf, int start, int len) intparseStrict(byte[] buf, int len, HttpRequestMessageObserver obs) Methods inherited from class org.archive.format.http.HttpMessageParser
parseVersionLax, parseVersionStrict
-
Field Details
-
maxBytes
public int maxBytes -
strict
public boolean strict
-
-
Constructor Details
-
HttpRequestMessageParser
public HttpRequestMessageParser()
-
-
Method Details
-
parse
- Throws:
HttpParseExceptionIOException
-
parse
public int parse(InputStream is, HttpRequestMessageObserver obs) throws HttpParseException, IOException - Throws:
HttpParseExceptionIOException
-
parse
public int parse(byte[] buf, int len, HttpRequestMessageObserver obs) throws HttpParseException, IOException - Throws:
HttpParseExceptionIOException
-
parseStrict
public int parseStrict(byte[] buf, int len, HttpRequestMessageObserver obs) throws HttpParseException - Throws:
HttpParseException
-
parseLax
- Throws:
HttpParseException
-
parseMethodStrict
- Throws:
HttpParseException
-
parseMethodLax
- Throws:
HttpParseException
-