| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final char | |
| private HttpHeaders | |
| private static final char | |
| private static final int | |
| private static final char | |
| private static final int | |
| private Map | |
| private int | |
| private StringBuilder | |
| private long | |
| private static final char | |
| private Http1HeaderParser. | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private boolean | |
| private void | |
| public String | |
| private char | Returns: the next byte in the input, interpreted as an ISO-8859-1 encoded chara input)ByteBuffer containing a partial inputReturns a character (char) corresponding to the next byte in the input, interpreted as an ISO-8859-1 encoded character. |
| pack-priv HttpHeaders | |
| private void | |
| private void | |
| private static long | |
| pack-priv boolean | Returns: true iff the end of the headers block has been reachedthe ( partial ) header data input)Parses HTTP/1.X status-line and headers from the given bytes. |
| private ProtocolException | |
| private void | |
| private void | |
| private void | |
| pack-priv int | |
| private void | |
| private void | |
| private void | |
| pack-priv String |
| CR | back to summary |
|---|---|
| private static final char CR | |
| headers | back to summary |
|---|---|
| private HttpHeaders headers | |
| HT | back to summary |
|---|---|
| private static final char HT | |
| K | back to summary |
|---|---|
| private static final int K | |
| LF | back to summary |
|---|---|
| private static final char LF | |
| MAX_HTTP_HEADER_SIZE | back to summary |
|---|---|
| private static final int MAX_HTTP_HEADER_SIZE | |
| privateMap | back to summary |
|---|---|
| private Map<String, List<String>> privateMap | |
| responseCode | back to summary |
|---|---|
| private int responseCode | |
| sb | back to summary |
|---|---|
| private StringBuilder sb | |
| size | back to summary |
|---|---|
| private long size | |
| SP | back to summary |
|---|---|
| private static final char SP | |
| state | back to summary |
|---|---|
| private Http1HeaderParser. | |
| statusLine | back to summary |
|---|---|
| private String statusLine | |
| Http1HeaderParser | back to summary |
|---|---|
| pack-priv Http1HeaderParser() | |
| addHeaderFromString | back to summary |
|---|---|
| private void addHeaderFromString(String headerString) throws ProtocolException | |
| canContinueParsing | back to summary |
|---|---|
| private boolean canContinueParsing(ByteBuffer buffer) | |
| checkMaxHeaderSize | back to summary |
|---|---|
| private void checkMaxHeaderSize(int sz) throws ProtocolException | |
| currentStateMessage | back to summary |
|---|---|
| public String currentStateMessage() A current-state message suitable for inclusion in an exception detail message. | |
| get | back to summary |
|---|---|
| private char get(ByteBuffer input) Returns a character (char) corresponding to the next byte in the input, interpreted as an ISO-8859-1 encoded character. The ISO-8859-1 encoding is a 8-bit character coding that corresponds to the first 256 Unicode characters - from U+0000 to U+00FF. UTF-16 is backward compatible with ISO-8859-1 - which means each byte in the input should be interpreted as an unsigned value from [0, 255] representing the character code.
| |
| headers | back to summary |
|---|---|
| pack-priv HttpHeaders headers() Returns the headers, possibly empty. | |
| maybeEndHeaders | back to summary |
|---|---|
| private void maybeEndHeaders(ByteBuffer input) throws ProtocolException | |
| maybeStartHeaders | back to summary |
|---|---|
| private void maybeStartHeaders(ByteBuffer input) throws ProtocolException | |
| newSize | back to summary |
|---|---|
| private static long newSize(long size, int name, int value) throws ProtocolException | |
| parse | back to summary |
|---|---|
| pack-priv boolean parse(ByteBuffer input) throws ProtocolException Parses HTTP/1.X status-line and headers from the given bytes. Must be called successive times, with additional data, until returns true. All given ByteBuffers will be consumed, until ( possibly ) the last one ( when true is returned ), which may not be fully consumed.
| |
| protocolException | back to summary |
|---|---|
| private ProtocolException protocolException(String format, Object... args) | |
| readResumeHeader | back to summary |
|---|---|
| private void readResumeHeader(ByteBuffer input) throws ProtocolException | |
| readResumeStatusLine | back to summary |
|---|---|
| private void readResumeStatusLine(ByteBuffer input) throws ProtocolException | |
| readStatusLineFeed | back to summary |
|---|---|
| private void readStatusLineFeed(ByteBuffer input) throws ProtocolException | |
| responseCode | back to summary |
|---|---|
| pack-priv int responseCode() Returns the response code. | |
| resumeOrEndHeaders | back to summary |
|---|---|
| private void resumeOrEndHeaders(ByteBuffer input) throws ProtocolException | |
| resumeOrLF | back to summary |
|---|---|
| private void resumeOrLF(ByteBuffer input) throws ProtocolException | |
| resumeOrSecondCR | back to summary |
|---|---|
| private void resumeOrSecondCR(ByteBuffer input) throws ProtocolException | |
| statusLine | back to summary |
|---|---|
| pack-priv String statusLine() Returns the status-line. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Http1HeaderParser. | |
| public static final Http1HeaderParser. | |
| public static final Http1HeaderParser. | |
| public static final Http1HeaderParser. | |
| public static final Http1HeaderParser. | |
| public static final Http1HeaderParser. | |
| public static final Http1HeaderParser. | |
| public static final Http1HeaderParser. | |
| public static final Http1HeaderParser. | |
| public static final Http1HeaderParser. | |
| public static final Http1HeaderParser. | |
| public static final Http1HeaderParser. | |
| public static final Http1HeaderParser. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Http1HeaderParser. | |
| public static Http1HeaderParser. |
| FINISHED | back to summary |
|---|---|
| public static final Http1HeaderParser. | |
| HEADER | back to summary |
|---|---|
| public static final Http1HeaderParser. | |
| HEADER_FOUND_CR | back to summary |
|---|---|
| public static final Http1HeaderParser. | |
| HEADER_FOUND_CR_LF | back to summary |
|---|---|
| public static final Http1HeaderParser. | |
| HEADER_FOUND_CR_LF_CR | back to summary |
|---|---|
| public static final Http1HeaderParser. | |
| HEADER_FOUND_LF | back to summary |
|---|---|
| public static final Http1HeaderParser. | |
| INITIAL | back to summary |
|---|---|
| public static final Http1HeaderParser. | |
| STATUS_LINE | back to summary |
|---|---|
| public static final Http1HeaderParser. | |
| STATUS_LINE_END | back to summary |
|---|---|
| public static final Http1HeaderParser. | |
| STATUS_LINE_END_CR | back to summary |
|---|---|
| public static final Http1HeaderParser. | |
| STATUS_LINE_END_LF | back to summary |
|---|---|
| public static final Http1HeaderParser. | |
| STATUS_LINE_FOUND_CR | back to summary |
|---|---|
| public static final Http1HeaderParser. | |
| STATUS_LINE_FOUND_LF | back to summary |
|---|---|
| public static final Http1HeaderParser. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static Http1HeaderParser. | |
| values | back to summary |
|---|---|
| public static Http1HeaderParser. | |