NHttpMessageParser that serves as a base for all message
parser implementations.
| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final List | |
| private CharArrayBuffer | |
| private final LineParser | |
| private T | |
| private final Http1Config | |
| private AbstractMessageParser. |
| Access | Constructor and Description |
|---|---|
| public | AbstractMessageParser(final LineParser
the line parser. If lineParser, final Http1Config null
org. will be used.Message constraints. If messageConstraints)null
Http1Config#DEFAULT will be used.Creates an instance of AbstractMessageParser. |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract T | Returns: HTTP message.the line buffer. buffer)Creates |
| pack-priv LineParser | |
| public T | parse(final SessionInputBuffer
session input buffer. sessionBuffer, final boolean end of stream flag endOfStream)Implements org. |
| private void | |
| private T | |
| public void |
| emptyLineCount | back to summary |
|---|---|
| private int emptyLineCount | |
| headerBufs | back to summary |
|---|---|
| private final List<CharArrayBuffer> headerBufs | |
| lineBuf | back to summary |
|---|---|
| private CharArrayBuffer lineBuf | |
| lineParser | back to summary |
|---|---|
| private final LineParser lineParser | |
| message | back to summary |
|---|---|
| private T message | |
| messageConstraints | back to summary |
|---|---|
| private final Http1Config messageConstraints | |
| state | back to summary |
|---|---|
| private AbstractMessageParser. | |
| AbstractMessageParser | back to summary |
|---|---|
| public AbstractMessageParser(final LineParser lineParser, final Http1Config messageConstraints) Creates an instance of AbstractMessageParser.
| |
| createMessage | back to summary |
|---|---|
| protected abstract T createMessage(CharArrayBuffer buffer) throws HttpException Creates
| |
| getLineParser | back to summary |
|---|---|
| pack-priv LineParser getLineParser() | |
| parse | back to summary |
|---|---|
| public T parse(final SessionInputBuffer sessionBuffer, final boolean endOfStream) throws IOException, HttpException Implements org. Doc from org. Attempts to parse a complete message head from the content of the
internal buffer. If the message in the input buffer is incomplete
this method will return
| |
| parseHeader | back to summary |
|---|---|
| private void parseHeader() throws IOException | |
| parseHeadLine | back to summary |
|---|---|
| private T parseHeadLine() throws IOException, HttpException | |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. Resets the parser. The parser will be ready to start parsing another HTTP message.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final AbstractMessageParser. | |
| public static final AbstractMessageParser. | |
| public static final AbstractMessageParser. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AbstractMessageParser. | |
| public static AbstractMessageParser. |
| COMPLETED | back to summary |
|---|---|
| public static final AbstractMessageParser. | |
| READ_HEAD_LINE | back to summary |
|---|---|
| public static final AbstractMessageParser. | |
| READ_HEADERS | back to summary |
|---|---|
| public static final AbstractMessageParser. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static AbstractMessageParser. | |
| values | back to summary |
|---|---|
| public static AbstractMessageParser. | |