| org.jicarilla.http.HTTPParser
All known Subclasses: org.jicarilla.http.HTTPParserImpl,
HTTPParser | public interface HTTPParser (Code) | | A component that understands HTTP. Fires off events to a
handler similarly to the way SAX works.
author: Leo Simons version: $Id: HTTPParser.java,v 1.4 2004/03/31 19:42:52 lsimons Exp $ |
Field Summary | |
int | BODY_TYPE_CHUNKING Return this from Handler.getBodyType() if the message
body is chunked. | int | BODY_TYPE_NONE Return this from Handler.getBodyType() if there is no
message body. | int | BODY_TYPE_NORMAL Return this from Handler.getBodyType() if the
message body is 'normal' (whatever that means). |
BODY_TYPE_CHUNKING | int BODY_TYPE_CHUNKING(Code) | | Return this from Handler.getBodyType() if the message
body is chunked.
|
BODY_TYPE_NONE | int BODY_TYPE_NONE(Code) | | Return this from Handler.getBodyType() if there is no
message body.
|
BODY_TYPE_NORMAL | int BODY_TYPE_NORMAL(Code) | | Return this from Handler.getBodyType() if the
message body is 'normal' (whatever that means).
|
parse | void parse(ByteBuffer source) throws HTTPException(Code) | | Parse a piece of an HTTP message. Equivalent to calling
parse( source, source.limit() );
Parameters: source - the buffer to read from. Note that you shouldnever modify this buffer after passing it to the parser! throws: HTTPException - |
parse | void parse(ByteBuffer source, int amount) throws HTTPException(Code) | | Parse a piece of an HTTP message. The buffer will be read
from its current position up to its limit. On return, the
buffers position will be at its end.
Parameters: source - the buffer to read from. Note that you shouldnever modify this buffer after passing it to the parser! Parameters: amount - the number of bytes to read from the source throws: HTTPException - |
reset | void reset()(Code) | | Re-initialize the parser, throwing away all current parser state.
|
|
|