private static final class HttpResponseStatus.HttpStatusLineProcessor extends java.lang.Object implements ByteProcessor
ByteProcessor.IndexNotOfProcessor, ByteProcessor.IndexOfProcessor| Modifier and Type | Field and Description |
|---|---|
private static byte |
ASCII_SPACE |
private int |
i |
private int |
state
0 = New or havn't seen
ASCII_SPACE. |
private HttpResponseStatus |
status |
private AsciiString |
string |
FIND_CR, FIND_CRLF, FIND_LF, FIND_LINEAR_WHITESPACE, FIND_NON_CR, FIND_NON_CRLF, FIND_NON_LF, FIND_NON_LINEAR_WHITESPACE, FIND_NON_NUL, FIND_NUL, FIND_SEMI_COLON| Constructor and Description |
|---|
HttpStatusLineProcessor(AsciiString string) |
| Modifier and Type | Method and Description |
|---|---|
private void |
parseStatus(int codeEnd) |
boolean |
process(byte value) |
HttpResponseStatus |
status() |
private static final byte ASCII_SPACE
private final AsciiString string
private int i
private int state
ASCII_SPACE.
1 = Last byte was ASCII_SPACE.
2 = Terminal State. Processed the byte after ASCII_SPACE, and parsed the status line.
3 = Terminal State. There was no byte after ASCII_SPACE but status has been parsed with what we saw.private HttpResponseStatus status
public HttpStatusLineProcessor(AsciiString string)
public boolean process(byte value)
process in interface ByteProcessortrue if the processor wants to continue the loop and handle the next byte in the buffer.
false if the processor wants to stop handling bytes and abort the loop.private void parseStatus(int codeEnd)
public HttpResponseStatus status()