| java.lang.Object org.apache.axis2.transport.nhttp.ClientHandler
ClientHandler | public class ClientHandler implements NHttpClientHandler(Code) | | The client connection handler. An instance of this class is used by each IOReactor, to
process every connection. Hence this class should not store any data related to a single
connection - as this is being shared.
|
Method Summary | |
public void | closed(NHttpClientConnection conn) | public void | connected(NHttpClientConnection conn, Object attachment) | public void | exception(NHttpClientConnection conn, HttpException e) | public void | exception(NHttpClientConnection conn, IOException e) | public void | inputReady(NHttpClientConnection conn, ContentDecoder decoder) Process ready input (i.e. | public void | outputReady(NHttpClientConnection conn, ContentEncoder encoder) Process ready output (i.e. | public void | requestReady(NHttpClientConnection conn) | public void | responseReceived(NHttpClientConnection conn) | public void | submitRequest(NHttpClientConnection conn, Axis2HttpRequest axis2Req) | public void | timeout(NHttpClientConnection conn) |
ClientHandler | public ClientHandler(ConfigurationContext cfgCtx, HttpParams params)(Code) | | Create an instance of this client connection handler using the Axis2 configuration
context and Http protocol parameters given
Parameters: cfgCtx - the Axis2 configuration context Parameters: params - the Http protocol parameters to adhere to |
closed | public void closed(NHttpClientConnection conn)(Code) | | |
connected | public void connected(NHttpClientConnection conn, Object attachment)(Code) | | Invoked when the destination is connected
Parameters: conn - the connection being processed Parameters: attachment - the attachment set previously |
exception | public void exception(NHttpClientConnection conn, HttpException e)(Code) | | Handle Http protocol violations encountered while reading from underlying channels
Parameters: conn - the connection being processed Parameters: e - the exception encountered |
exception | public void exception(NHttpClientConnection conn, IOException e)(Code) | | Handle IO errors while reading or writing to underlying channels
Parameters: conn - the connection being processed Parameters: e - the exception encountered |
inputReady | public void inputReady(NHttpClientConnection conn, ContentDecoder decoder)(Code) | | Process ready input (i.e. response from remote server)
Parameters: conn - connection being processed Parameters: decoder - the content decoder in use |
outputReady | public void outputReady(NHttpClientConnection conn, ContentEncoder encoder)(Code) | | Process ready output (i.e. write request to remote server)
Parameters: conn - the connection being processed Parameters: encoder - the encoder in use |
requestReady | public void requestReady(NHttpClientConnection conn)(Code) | | |
responseReceived | public void responseReceived(NHttpClientConnection conn)(Code) | | Process a response received for the request sent out
Parameters: conn - the connection being processed |
submitRequest | public void submitRequest(NHttpClientConnection conn, Axis2HttpRequest axis2Req)(Code) | | Submit a new request over an already established connection, which has been
'kept alive'
Parameters: conn - the connection to use to send the request, which has been kept open Parameters: axis2Req - the new request |
timeout | public void timeout(NHttpClientConnection conn)(Code) | | Handle connection timeouts by shutting down the connections
Parameters: conn - the connection being processed |
|
|