|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.transport.nhttp.ClientHandler
public class ClientHandler
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.
Constructor Summary | |
---|---|
ClientHandler(ConfigurationContext cfgCtx,
org.apache.http.params.HttpParams params)
Create an instance of this client connection handler using the Axis2 configuration context and Http protocol parameters given |
Method Summary | |
---|---|
void |
closed(org.apache.http.nio.NHttpClientConnection conn)
|
void |
connected(org.apache.http.nio.NHttpClientConnection conn,
java.lang.Object attachment)
Invoked when the destination is connected |
void |
exception(org.apache.http.nio.NHttpClientConnection conn,
org.apache.http.HttpException e)
Handle Http protocol violations encountered while reading from underlying channels |
void |
exception(org.apache.http.nio.NHttpClientConnection conn,
java.io.IOException e)
Handle IO errors while reading or writing to underlying channels |
void |
inputReady(org.apache.http.nio.NHttpClientConnection conn,
org.apache.http.nio.ContentDecoder decoder)
Process ready input (i.e. |
void |
outputReady(org.apache.http.nio.NHttpClientConnection conn,
org.apache.http.nio.ContentEncoder encoder)
Process ready output (i.e. |
void |
requestReady(org.apache.http.nio.NHttpClientConnection conn)
|
void |
responseReceived(org.apache.http.nio.NHttpClientConnection conn)
Process a response received for the request sent out |
void |
submitRequest(org.apache.http.nio.NHttpClientConnection conn,
Axis2HttpRequest axis2Req)
Submit a new request over an already established connection, which has been 'kept alive' |
void |
timeout(org.apache.http.nio.NHttpClientConnection conn)
Handle connection timeouts by shutting down the connections |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientHandler(ConfigurationContext cfgCtx, org.apache.http.params.HttpParams params)
cfgCtx
- the Axis2 configuration contextparams
- the Http protocol parameters to adhere toMethod Detail |
---|
public void requestReady(org.apache.http.nio.NHttpClientConnection conn)
requestReady
in interface org.apache.http.nio.NHttpClientHandler
public void submitRequest(org.apache.http.nio.NHttpClientConnection conn, Axis2HttpRequest axis2Req)
conn
- the connection to use to send the request, which has been kept openaxis2Req
- the new requestpublic void connected(org.apache.http.nio.NHttpClientConnection conn, java.lang.Object attachment)
connected
in interface org.apache.http.nio.NHttpClientHandler
conn
- the connection being processedattachment
- the attachment set previouslypublic void closed(org.apache.http.nio.NHttpClientConnection conn)
closed
in interface org.apache.http.nio.NHttpClientHandler
public void timeout(org.apache.http.nio.NHttpClientConnection conn)
timeout
in interface org.apache.http.nio.NHttpClientHandler
conn
- the connection being processedpublic void exception(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.HttpException e)
exception
in interface org.apache.http.nio.NHttpClientHandler
conn
- the connection being processede
- the exception encounteredpublic void exception(org.apache.http.nio.NHttpClientConnection conn, java.io.IOException e)
exception
in interface org.apache.http.nio.NHttpClientHandler
conn
- the connection being processede
- the exception encounteredpublic void inputReady(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentDecoder decoder)
inputReady
in interface org.apache.http.nio.NHttpClientHandler
conn
- connection being processeddecoder
- the content decoder in usepublic void outputReady(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentEncoder encoder)
outputReady
in interface org.apache.http.nio.NHttpClientHandler
conn
- the connection being processedencoder
- the encoder in usepublic void responseReceived(org.apache.http.nio.NHttpClientConnection conn)
responseReceived
in interface org.apache.http.nio.NHttpClientHandler
conn
- the connection being processed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |