| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| public static final byte[] | |
| private static final Receiver. | |
| private final HttpServerExchange | |
| private final InputStream | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | pause()
Implements io. When receiving partial data calling this method will pause the callbacks. |
| public void | receiveFullBytes(final Receiver.
The callback to invoke with the request callback,The callback that is invoked on error errorCallbackImplements io. Reads the request and invokes the callback when the request body has been fully read. |
| public void | receiveFullBytes(Receiver.
The callback to invoke with the request callbackImplements io. Reads the request and invokes the callback when the request body has been fully read. |
| public void | receiveFullString(final Receiver.
The callback to invoke with the request callback,The callback that is invoked on error errorCallbackImplements io. Reads the request and invokes the callback when the request body has been fully read. |
| public void | receiveFullString(Receiver.
The callback to invoke with the request callbackImplements io. Reads the request and invokes the callback when the request body has been fully read. |
| public void | receiveFullString(final Receiver.
The callback to invoke with the request callback,The callback that is invoked on error errorCallback,The charset that is used to interpret the string charset)Implements io. Reads the request and invokes the callback when the request body has been fully read. |
| public void | receiveFullString(Receiver.
The callback to invoke with the request callback,The charset that is used to interpret the string charset)Implements io. Reads the request and invokes the callback when the request body has been fully read. |
| public void | receivePartialBytes(final Receiver.
The callback to invoke with the request callback,The callback that is invoked on error errorCallbackImplements io. Reads the request and invokes the callback with request data. |
| public void | receivePartialBytes(Receiver.
The callback to invoke with the request callbackImplements io. Reads the request and invokes the callback with request data. |
| public void | receivePartialString(Receiver.
The callback to invoke with the request callback,The callback that is invoked on error errorCallbackImplements io. Reads the request and invokes the callback with request data. |
| public void | receivePartialString(Receiver.
The callback to invoke with the request callbackImplements io. Reads the request and invokes the callback with request data. |
| public void | receivePartialString(final Receiver.
The callback to invoke with the request callback,The callback that is invoked on error errorCallback,The charset that is used to interpret the string charset)Implements io. Reads the request and invokes the callback with request data. |
| public void | receivePartialString(Receiver.
The callback to invoke with the request callback,The charset that is used to interpret the string charset)Implements io. Reads the request and invokes the callback with request data. |
| public void | |
| public void | setMaxBufferSize(int
The maximum amount of data to be buffered maxBufferSize)Implements io. Sets the maximum amount of data that will be buffered in memory. |
| done | back to summary |
|---|---|
| private boolean done | |
| EMPTY_BYTE_ARRAY | back to summary |
|---|---|
| public static final byte[] EMPTY_BYTE_ARRAY | |
| END_EXCHANGE | back to summary |
|---|---|
| private static final Receiver. | |
| exchange | back to summary |
|---|---|
| private final HttpServerExchange exchange | |
| inputStream | back to summary |
|---|---|
| private final InputStream inputStream | |
| maxBufferSize | back to summary |
|---|---|
| private int maxBufferSize | |
| BlockingReceiverImpl | back to summary |
|---|---|
| public BlockingReceiverImpl(HttpServerExchange exchange, InputStream inputStream) | |
| pause | back to summary |
|---|---|
| public void pause() Implements io. Doc from io. When receiving partial data calling this method will pause the callbacks. Callbacks will not resume until
| |
| receiveFullBytes | back to summary |
|---|---|
| public void receiveFullBytes(final Receiver. Implements io. Doc from io. Reads the request and invokes the callback when the request body has been fully read. If there is an error reading the request the error callback will be invoked.
| |
| receiveFullBytes | back to summary |
|---|---|
| public void receiveFullBytes(Receiver. Implements io. Doc from io. Reads the request and invokes the callback when the request body has been fully read. If there is an error the exchange will be ended.
| |
| receiveFullString | back to summary |
|---|---|
| public void receiveFullString(final Receiver. Implements io. Doc from io. Reads the request and invokes the callback when the request body has been fully read.
This string will be interpreted according to
| |
| receiveFullString | back to summary |
|---|---|
| public void receiveFullString(Receiver. Implements io. Doc from io. Reads the request and invokes the callback when the request body has been fully read.
This string will be interpreted according to
| |
| receiveFullString | back to summary |
|---|---|
| public void receiveFullString(final Receiver. Implements io. Doc from io. Reads the request and invokes the callback when the request body has been fully read. This string will be interpreted according to the specified charset. If there is an error reading the request the error callback will be invoked.
| |
| receiveFullString | back to summary |
|---|---|
| public void receiveFullString(Receiver. Implements io. Doc from io. Reads the request and invokes the callback when the request body has been fully read. This string will be interpreted according to the specified charset. If there is an error the exchange will be ended.
| |
| receivePartialBytes | back to summary |
|---|---|
| public void receivePartialBytes(final Receiver. Implements io. Doc from io. Reads the request and invokes the callback with request data. The callback may be invoked multiple times, and on the last time the last parameter will be true. If there is an error reading the request the error callback will be invoked.
| |
| receivePartialBytes | back to summary |
|---|---|
| public void receivePartialBytes(Receiver. Implements io. Doc from io. Reads the request and invokes the callback with request data. The callback may be invoked multiple times, and on the last time the last parameter will be true. If there is an error the exchange will be ended.
| |
| receivePartialString | back to summary |
|---|---|
| public void receivePartialString(Receiver. Implements io. Doc from io. Reads the request and invokes the callback with request data. The callback may be invoked multiple
times, and on the last time the last parameter will be true.
This string will be interpreted according to
| |
| receivePartialString | back to summary |
|---|---|
| public void receivePartialString(Receiver. Implements io. Doc from io. Reads the request and invokes the callback with request data. The callback may be invoked multiple
times, and on the last time the last parameter will be true.
This string will be interpreted according to
| |
| receivePartialString | back to summary |
|---|---|
| public void receivePartialString(final Receiver. Implements io. Doc from io. Reads the request and invokes the callback with request data. The callback may be invoked multiple times, and on the last time the last parameter will be true. This string will be interpreted according to the specified charset. If there is an error reading the request the error callback will be invoked.
| |
| receivePartialString | back to summary |
|---|---|
| public void receivePartialString(Receiver. Implements io. Doc from io. Reads the request and invokes the callback with request data. The callback may be invoked multiple times, and on the last time the last parameter will be true. This string will be interpreted according to the specified charset. If there is an error the exchange will be ended.
| |
| resume | back to summary |
|---|---|
| public void resume() Implements io. Doc from io. Resumes paused callbacks.
| |
| setMaxBufferSize | back to summary |
|---|---|
| public void setMaxBufferSize(int maxBufferSize) Implements io. Doc from io. Sets the maximum amount of data that will be buffered in memory. If you call a receiveFull* method
and the request size is larger than this amount then the error callback with be invoked with a
| |