| Modifier and Type | Field and Description |
|---|---|
| private Runnable | |
| private final ByteBufferPool | |
| private Content. | |
| private boolean | |
| private final LongAdder | |
| private static final Logger | |
| private String | |
| private RetainableByteBuffer | |
| private final HttpParser | |
| private boolean | |
| private int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | badMessage(HttpException
the failure with the bad message information failure)Overrides default org. Called to signal that a bad HTTP message has been received. |
| private Content. | |
| public boolean | |
| public boolean | |
| protected void | dispose()
Overrides org. Disposes the state of this HttpReceiver. |
| public void | earlyEOF()
Implements org. Called to signal that an EOF was received unexpectedly during the parsing of an HTTP message |
| public void | failAndClose(Throwable
the failure. failure)Implements abstract org. Fails the receiver and closes the underlying stream. |
| protected void | |
| private Runnable | |
| public HttpChannelOverHTTP | |
| private HttpConnectionOverHTTP | |
| pack-priv long | |
| protected ByteBuffer | |
| public boolean | |
| protected boolean | |
| public boolean | |
| private RetainableByteBuffer | |
| protected void | onInterim()
Implements abstract org. Prepare for the next step after an interim response was read. |
| protected ByteBuffer | |
| private boolean | Returns: true to indicate that parsing should be interrupted (and will be resumed by another thread).Parses an HTTP response in the receivers buffer. |
| private boolean | Returns: true if no bytes were filled.Parses the networkBuffer until the next content is generated or until the buffer is depleted. |
| public void | parsedHeader(HttpField
The field parsed field)Implements org. This is the method called by parser when an HTTP Header name and value is found |
| public void | parsedTrailer(HttpField
The field parsed trailer)Overrides default org. This is the method called by parser when an HTTP Trailer name and value is found |
| private void | |
| public Content. | read(boolean
true to register for fill interest when no data was read. fillInterestIfNeeded)Implements abstract org. Reads a chunk of data. |
| pack-priv void | |
| private void | |
| private void | |
| protected void | reset()
Overrides org. Resets the state of this HttpReceiver. |
| private void | |
| public void | startResponse(HttpVersion
the http version in use version, int the response status status, String the response reason phrase reason)Implements org. This is the method called by parser when the HTTP request line is parsed |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| action | back to summary |
|---|---|
| private Runnable action | |
| byteBufferPool | back to summary |
|---|---|
| private final ByteBufferPool byteBufferPool | |
| chunk | back to summary |
|---|---|
| private Content. | |
| complete | back to summary |
|---|---|
| private boolean complete | |
| inMessages | back to summary |
|---|---|
| private final LongAdder inMessages | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| method | back to summary |
|---|---|
| private String method | |
| networkBuffer | back to summary |
|---|---|
| private RetainableByteBuffer networkBuffer | |
| parser | back to summary |
|---|---|
| private final HttpParser parser | |
| shutdown | back to summary |
|---|---|
| private boolean shutdown | |
| status | back to summary |
|---|---|
| private int status | |
| unsolicited | back to summary |
|---|---|
| private boolean unsolicited | |
| HttpReceiverOverHTTP | back to summary |
|---|---|
| public HttpReceiverOverHTTP(HttpChannelOverHTTP channel) | |
| acquireNetworkBuffer | back to summary |
|---|---|
| private void acquireNetworkBuffer() | |
| badMessage | back to summary |
|---|---|
| public void badMessage(HttpException failure) Overrides default org. Doc from org. Called to signal that a bad HTTP message has been received.
| |
| consumeChunk | back to summary |
|---|---|
| private Content. | |
| content | back to summary |
|---|---|
| public boolean content(ByteBuffer buffer) Implements org.
| |
| contentComplete | back to summary |
|---|---|
| public boolean contentComplete() Implements org.
| |
| dispose | back to summary |
|---|---|
| protected void dispose() Overrides org. Doc from org. Disposes the state of this HttpReceiver.
Subclasses should override (but remember to call
Either this method or
| |
| earlyEOF | back to summary |
|---|---|
| public void earlyEOF() Implements org. Doc from org. Called to signal that an EOF was received unexpectedly during the parsing of an HTTP message
| |
| failAndClose | back to summary |
|---|---|
| public void failAndClose(Throwable failure) Implements abstract org. Doc from org. Fails the receiver and closes the underlying stream. | |
| fillInterested | back to summary |
|---|---|
| protected void fillInterested() | |
| getAndSetAction | back to summary |
|---|---|
| private Runnable getAndSetAction(Runnable action) | |
| getHttpChannel | back to summary |
|---|---|
| public HttpChannelOverHTTP getHttpChannel() Overrides org.
| |
| getHttpConnection | back to summary |
|---|---|
| private HttpConnectionOverHTTP getHttpConnection() | |
| getMessagesIn | back to summary |
|---|---|
| pack-priv long getMessagesIn() | |
| getResponseBuffer | back to summary |
|---|---|
| protected ByteBuffer getResponseBuffer() | |
| headerComplete | back to summary |
|---|---|
| public boolean headerComplete() Implements org.
| |
| isShutdown | back to summary |
|---|---|
| protected boolean isShutdown() | |
| messageComplete | back to summary |
|---|---|
| public boolean messageComplete() Implements org.
| |
| newNetworkBuffer | back to summary |
|---|---|
| private RetainableByteBuffer newNetworkBuffer() | |
| onInterim | back to summary |
|---|---|
| protected void onInterim() Implements abstract org. Doc from org. Prepare for the next step after an interim response was read.
| |
| onUpgradeFrom | back to summary |
|---|---|
| protected ByteBuffer onUpgradeFrom() | |
| parse | back to summary |
|---|---|
| private boolean parse() Parses an HTTP response in the receivers buffer.
| |
| parseAndFill | back to summary |
|---|---|
| private boolean parseAndFill() Parses the networkBuffer until the next content is generated or until the buffer is depleted. If this method depletes the buffer, it will always try to re-fill until fill generates 0 byte.
| |
| parsedHeader | back to summary |
|---|---|
| public void parsedHeader(HttpField field) Implements org. Doc from org. This is the method called by parser when an HTTP Header name and value is found | |
| parsedTrailer | back to summary |
|---|---|
| public void parsedTrailer(HttpField trailer) Overrides default org. Doc from org. This is the method called by parser when an HTTP Trailer name and value is found | |
| reacquireNetworkBuffer | back to summary |
|---|---|
| private void reacquireNetworkBuffer() | |
| read | back to summary |
|---|---|
| public Content. Implements abstract org. Doc from org. Reads a chunk of data.
If no data was read,
The returned chunk of data may be the last one or an error exactly like
| |
| receive | back to summary |
|---|---|
| pack-priv void receive() | |
| receiveNext | back to summary |
|---|---|
| private void receiveNext() | |
| releaseNetworkBuffer | back to summary |
|---|---|
| private void releaseNetworkBuffer() | |
| reset | back to summary |
|---|---|
| protected void reset() Overrides org. Doc from org. Resets the state of this HttpReceiver.
Subclasses should override (but remember to call
Either this method or
| |
| shutdown | back to summary |
|---|---|
| private void shutdown() | |
| startResponse | back to summary |
|---|---|
| public void startResponse(HttpVersion version, int status, String reason) Implements org. Doc from org. This is the method called by parser when the HTTP request line is parsed
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |