| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private Buffer | |
| private Buffer | |
| private Buffers | |
| private BufferCache. | |
| protected int | |
| protected int | |
| private int | |
| protected long | |
| protected long | |
| private View | |
| private EndPoint | |
| protected byte | |
| private boolean | |
| private HttpParser. | |
| private Buffer | |
| private int | |
| private HttpParser. | |
| protected int | |
| private String | |
| private int | |
| protected int | |
| private View. | |
| private View. | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | HttpParser(Buffers buffers, EndPoint endp, HttpParser.
size in bytes of header buffer headerBufferSize, int size in bytes of content buffer contentBufferSize)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public Buffer | |
| public long | |
| public Buffer | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public long | |
| public long | Returns: number of bytes filled from endpoint or -1 if fill never called.Parse until next Event. |
| public void | |
| public void | setForceContentBuffer(boolean
True if a new buffer will be forced to be used for content and the header buffer will not be used. force)
|
| public void | |
| public void | |
| public String | |
| public String |
| _body | back to summary |
|---|---|
| private Buffer _body | |
| _buffer | back to summary |
|---|---|
| private Buffer _buffer | |
| _buffers | back to summary |
|---|---|
| private Buffers _buffers | |
| _cached | back to summary |
|---|---|
| private BufferCache. | |
| _chunkLength | back to summary |
|---|---|
| protected int _chunkLength | |
| _chunkPosition | back to summary |
|---|---|
| protected int _chunkPosition | |
| _contentBufferSize | back to summary |
|---|---|
| private int _contentBufferSize | |
| _contentLength | back to summary |
|---|---|
| protected long _contentLength | |
| _contentPosition | back to summary |
|---|---|
| protected long _contentPosition | |
| _contentView | back to summary |
|---|---|
| private View _contentView | |
| _endp | back to summary |
|---|---|
| private EndPoint _endp | |
| _eol | back to summary |
|---|---|
| protected byte _eol | |
| _forceContentBuffer | back to summary |
|---|---|
| private boolean _forceContentBuffer | |
| _handler | back to summary |
|---|---|
| private HttpParser. | |
| _header | back to summary |
|---|---|
| private Buffer _header | |
| _headerBufferSize | back to summary |
|---|---|
| private int _headerBufferSize | |
| _input | back to summary |
|---|---|
| private HttpParser. | |
| _length | back to summary |
|---|---|
| protected int _length | |
| _multiLineValue | back to summary |
|---|---|
| private String _multiLineValue | |
| _responseStatus | back to summary |
|---|---|
| private int _responseStatus | |
| _state | back to summary |
|---|---|
| protected int _state | |
| _tok0 | back to summary |
|---|---|
| private View. | |
| _tok1 | back to summary |
|---|---|
| private View. | |
| STATE_CHUNK | back to summary |
|---|---|
| public static final int STATE_CHUNK | |
| STATE_CHUNK_PARAMS | back to summary |
|---|---|
| public static final int STATE_CHUNK_PARAMS | |
| STATE_CHUNK_SIZE | back to summary |
|---|---|
| public static final int STATE_CHUNK_SIZE | |
| STATE_CHUNKED_CONTENT | back to summary |
|---|---|
| public static final int STATE_CHUNKED_CONTENT | |
| STATE_CONTENT | back to summary |
|---|---|
| public static final int STATE_CONTENT | |
| STATE_END | back to summary |
|---|---|
| public static final int STATE_END | |
| STATE_END0 | back to summary |
|---|---|
| public static final int STATE_END0 | |
| STATE_END1 | back to summary |
|---|---|
| public static final int STATE_END1 | |
| STATE_EOF_CONTENT | back to summary |
|---|---|
| public static final int STATE_EOF_CONTENT | |
| STATE_FIELD0 | back to summary |
|---|---|
| public static final int STATE_FIELD0 | |
| STATE_FIELD1 | back to summary |
|---|---|
| public static final int STATE_FIELD1 | |
| STATE_FIELD2 | back to summary |
|---|---|
| public static final int STATE_FIELD2 | |
| STATE_HEADER | back to summary |
|---|---|
| public static final int STATE_HEADER | |
| STATE_HEADER_IN_NAME | back to summary |
|---|---|
| public static final int STATE_HEADER_IN_NAME | |
| STATE_HEADER_IN_VALUE | back to summary |
|---|---|
| public static final int STATE_HEADER_IN_VALUE | |
| STATE_HEADER_NAME | back to summary |
|---|---|
| public static final int STATE_HEADER_NAME | |
| STATE_HEADER_VALUE | back to summary |
|---|---|
| public static final int STATE_HEADER_VALUE | |
| STATE_SPACE1 | back to summary |
|---|---|
| public static final int STATE_SPACE1 | |
| STATE_SPACE2 | back to summary |
|---|---|
| public static final int STATE_SPACE2 | |
| STATE_START | back to summary |
|---|---|
| public static final int STATE_START | |
| HttpParser | back to summary |
|---|---|
| public HttpParser(Buffer buffer, HttpParser. Constructor. | |
| HttpParser | back to summary |
|---|---|
| public HttpParser(Buffers buffers, EndPoint endp, HttpParser. Constructor.
| |
| fill | back to summary |
|---|---|
| public long fill() throws IOException fill the buffers from the endpoint | |
| getBodyBuffer | back to summary |
|---|---|
| public Buffer getBodyBuffer() | |
| getContentLength | back to summary |
|---|---|
| public long getContentLength() | |
| getHeaderBuffer | back to summary |
|---|---|
| public Buffer getHeaderBuffer() | |
| getState | back to summary |
|---|---|
| public int getState() | |
| inContentState | back to summary |
|---|---|
| public boolean inContentState() | |
| inHeaderState | back to summary |
|---|---|
| public boolean inHeaderState() | |
| isChunking | back to summary |
|---|---|
| public boolean isChunking() | |
| isComplete | back to summary |
|---|---|
| public boolean isComplete() Implements org. | |
| isIdle | back to summary |
|---|---|
| public boolean isIdle() Implements org. | |
| isMoreInBuffer | back to summary |
|---|---|
| public boolean isMoreInBuffer() throws IOException Implements org. | |
| isState | back to summary |
|---|---|
| public boolean isState(int state) | |
| parse | back to summary |
|---|---|
| public void parse() throws IOException Parse until
| |
| parseAvailable | back to summary |
|---|---|
| public long parseAvailable() throws IOException Implements org. Parse until END state.
This method will parse any remaining content in the current buffer. It does not care about the
| |
| parseNext | back to summary |
|---|---|
| public long parseNext() throws IOException Parse until next Event.
| |
| reset | back to summary |
|---|---|
| public void reset(boolean returnBuffers) Implements org. | |
| setForceContentBuffer | back to summary |
|---|---|
public void setForceContentBuffer(boolean force)
| |
| setState | back to summary |
|---|---|
| public void setState(int state) | |
| skipCRLF | back to summary |
|---|---|
| public void skipCRLF() Skip any CRLFs in buffers | |
| toString | back to summary |
|---|---|
| public String toString(Buffer buf) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public void | |
| public void | |
| public void | parsedHeader(Buffer name, Buffer value)
This is the method called by parser when a HTTP Header name and value is found |
| public abstract void | startRequest(Buffer method, Buffer url, Buffer version)
This is the method called by parser when the HTTP request line is parsed |
| public abstract void | startResponse(Buffer version, int status, Buffer reason)
This is the method called by parser when the HTTP request line is parsed |
| EventHandler | back to summary |
|---|---|
| public EventHandler() | |
| content | back to summary |
|---|---|
| public abstract void content(Buffer ref) throws IOException | |
| headerComplete | back to summary |
|---|---|
| public void headerComplete() throws IOException | |
| messageComplete | back to summary |
|---|---|
| public void messageComplete(long contextLength) throws IOException | |
| parsedHeader | back to summary |
|---|---|
| public void parsedHeader(Buffer name, Buffer value) throws IOException This is the method called by parser when a HTTP Header name and value is found | |
| startRequest | back to summary |
|---|---|
| public abstract void startRequest(Buffer method, Buffer url, Buffer version) throws IOException This is the method called by parser when the HTTP request line is parsed | |
| startResponse | back to summary |
|---|---|
| public abstract void startResponse(Buffer version, int status, Buffer reason) throws IOException This is the method called by parser when the HTTP request line is parsed | |
| Modifier and Type | Field and Description |
|---|---|
| protected Buffer | |
| protected EndPoint | |
| protected long | |
| protected HttpParser |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Overrides java. |
| private boolean | |
| public int | read()
Implements abstract java. |
| public int | read(byte[]
the buffer into which the data is read. b, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. len bytes of data from the input stream into
an array of bytes.
|
| _contentView | back to summary |
|---|---|
| protected Buffer _contentView | |
| _endp | back to summary |
|---|---|
| protected EndPoint _endp | |
| _maxIdleTime | back to summary |
|---|---|
| protected long _maxIdleTime | |
| _parser | back to summary |
|---|---|
| protected HttpParser _parser | |
| Input | back to summary |
|---|---|
| public Input(HttpParser parser, long maxIdleTime) | |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Doc from java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. The read might be on the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes. Note that while some implementations of A subclass's implementation of this method may choose to throw an
| |
| blockForContent | back to summary |
|---|---|
| private boolean blockForContent() throws IOException | |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |