public interface

NHttpClientConnection

implements NHttpConnection
org.apache.http.nio.NHttpClientConnection
Known Indirect Subclasses

Class Overview

Abstract non-blocking client-side HTTP connection interface. It can be used to submit HTTP requests and asynchronously receive HTTP responses.

See Also

Summary

[Expand]
Inherited Constants
From interface org.apache.http.nio.NHttpConnection
Public Methods
abstract boolean isRequestSubmitted()
Returns true if an HTTP request has been submitted to the target server.
abstract void resetInput()
Resets output state.
abstract void resetOutput()
Resets input state.
abstract void submitRequest(HttpRequest request)
Submits HttpRequest to be sent to the target server.
[Expand]
Inherited Methods
From interface org.apache.http.HttpConnection
From interface org.apache.http.nio.IOControl
From interface org.apache.http.nio.NHttpConnection

Public Methods

public abstract boolean isRequestSubmitted ()

Returns true if an HTTP request has been submitted to the target server.

Returns
  • true if an HTTP request has been submitted, false otherwise.

public abstract void resetInput ()

Resets output state. This method can be used to prematurely terminate processing of the incoming HTTP response.

public abstract void resetOutput ()

Resets input state. This method can be used to prematurely terminate processing of the outgoing HTTP request.

public abstract void submitRequest (HttpRequest request)

Submits HttpRequest to be sent to the target server.

Parameters
request HTTP request
Throws
IOException if I/O error occurs while submitting the request
HttpException if the HTTP request violates the HTTP protocol.