| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private Callback | |
| private ByteBuffer | |
| private final IteratingCallback | |
| private HttpExchange | |
| private final HttpGenerator | |
| private final IteratingCallback | |
| private boolean | |
| private static final Logger | |
| private MetaData. | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public HttpChannelOverHTTP | |
| protected boolean | |
| protected void | |
| protected void | sendContent(HttpExchange
the exchange exchange, ByteBuffer the content to send contentBuffer, boolean whether the content is the last content to send lastContent, Callback the callback to notify callback)Implements abstract org. Implementations should send the given HTTP content over the wire. |
| protected void | sendHeaders(HttpExchange
the exchange exchange, ByteBuffer the content to send contentBuffer, boolean whether the content is the last content to send lastContent, Callback the callback to notify callback)Implements abstract org. Implementations should send the HTTP headers over the wire, possibly with some content,
in a single write, and notify the given |
| private void | |
| public String | toString()
Overrides org. |
| callback | back to summary |
|---|---|
| private Callback callback | |
| contentByteBuffer | back to summary |
|---|---|
| private ByteBuffer contentByteBuffer | |
| contentCallback | back to summary |
|---|---|
| private final IteratingCallback contentCallback | |
| exchange | back to summary |
|---|---|
| private HttpExchange exchange | |
| generator | back to summary |
|---|---|
| private final HttpGenerator generator | |
| headersCallback | back to summary |
|---|---|
| private final IteratingCallback headersCallback | |
| lastContent | back to summary |
|---|---|
| private boolean lastContent | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| metaData | back to summary |
|---|---|
| private MetaData. | |
| shutdown | back to summary |
|---|---|
| private boolean shutdown | |
| HttpSenderOverHTTP | back to summary |
|---|---|
| public HttpSenderOverHTTP(HttpChannelOverHTTP channel) | |
| dispose | back to summary |
|---|---|
| protected void dispose() Overrides org.
| |
| getHttpChannel | back to summary |
|---|---|
| public HttpChannelOverHTTP getHttpChannel() Overrides org.
| |
| isShutdown | back to summary |
|---|---|
| protected boolean isShutdown() | |
| reset | back to summary |
|---|---|
| protected void reset() Overrides org.
| |
| sendContent | back to summary |
|---|---|
| protected void sendContent(HttpExchange exchange, ByteBuffer contentBuffer, boolean lastContent, Callback callback) Implements abstract org. Doc from org. Implementations should send the given HTTP content over the wire.
| |
| sendHeaders | back to summary |
|---|---|
| protected void sendHeaders(HttpExchange exchange, ByteBuffer contentBuffer, boolean lastContent, Callback callback) Implements abstract org. Doc from org. Implementations should send the HTTP headers over the wire, possibly with some content,
in a single write, and notify the given If there is more content to send, then
| |
| shutdownOutput | back to summary |
|---|---|
| private void shutdownOutput() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private RetainableByteBuffer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | onCompleteFailure(Throwable
the throwable to indicate cause of failure cause)Overrides org. |
| protected IteratingCallback. | process()
Implements abstract org. iterate() to process the asynchronous sub-task.
|
| private void |
| chunkBuffer | back to summary |
|---|---|
| private RetainableByteBuffer chunkBuffer | |
| ContentCallback | back to summary |
|---|---|
| public ContentCallback() | |
| onCompleteFailure | back to summary |
|---|---|
| protected void onCompleteFailure(Throwable cause) Overrides org. Doc from org. Invoked when the overall task has completed with a failure. | |
| process | back to summary |
|---|---|
| protected IteratingCallback. Implements abstract org. Doc from org. Method called by Implementations must initiate the asynchronous execution of the sub-task (if any) and return an appropriate action:
| |
| release | back to summary |
|---|---|
| private void release() | |
| Modifier and Type | Field and Description |
|---|---|
| private RetainableByteBuffer | |
| private boolean | |
| private RetainableByteBuffer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | failed(Throwable
the reason for the operation failure x)Overrides org. Overrides default org. |
| protected void | onCompleteFailure(Throwable
the throwable to indicate cause of failure cause)Overrides org. |
| protected void | onCompleteSuccess()
Overrides org. |
| protected IteratingCallback. | process()
Implements abstract org. iterate() to process the asynchronous sub-task.
|
| private void | |
| public void | succeeded()
Overrides org. Overrides default org. |
| chunkBuffer | back to summary |
|---|---|
| private RetainableByteBuffer chunkBuffer | |
| generated | back to summary |
|---|---|
| private boolean generated | |
| headerBuffer | back to summary |
|---|---|
| private RetainableByteBuffer headerBuffer | |
| HeadersCallback | back to summary |
|---|---|
| private HeadersCallback() | |
| failed | back to summary |
|---|---|
| public void failed(Throwable x) Overrides org. Overrides default org. Doc from org. Method to invoke when the asynchronous sub-task fails, or to fail the overall asynchronous task and therefore terminate the iteration.
Subclasses that override this method must always remember
to call
Eventually,
| |
| onCompleteFailure | back to summary |
|---|---|
| protected void onCompleteFailure(Throwable cause) Overrides org. Doc from org. Invoked when the overall task has completed with a failure. | |
| onCompleteSuccess | back to summary |
|---|---|
| protected void onCompleteSuccess() Overrides org. Doc from org. Invoked when the overall task has completed successfully.
| |
| process | back to summary |
|---|---|
| protected IteratingCallback. Implements abstract org. Doc from org. Method called by Implementations must initiate the asynchronous execution of the sub-task (if any) and return an appropriate action:
| |
| release | back to summary |
|---|---|
| private void release() | |
| succeeded | back to summary |
|---|---|
| public void succeeded() Overrides org. Overrides default org. Doc from org. Method to invoke when the asynchronous sub-task succeeds.
Subclasses that override this method must always remember
to call
| |