|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.connector.http.HttpConnectorSessionImpl
public class HttpConnectorSessionImpl
Session bean using the http connector.
| Constructor Summary | |
|---|---|
HttpConnectorSessionImpl()
|
|
| Method Summary | |
|---|---|
void |
requestSend(ConnectorContext context)
Callback method indicating that the request is being sent to the peer. |
void |
requestSendWithRetry(ConnectorContext context)
Callback method indicating that the request is being sent to the peer, possibly retrying if sending fails at first. |
void |
responseReceived(int resultCode,
byte[] response,
ConnectorContext context)
Callback method indicating that the response has been received from the peer in use. |
void |
responseReceivedAfterRetry(int numberOfRetries,
byte[] responseData,
ConnectorContext context)
Callback indicating that a response was received after the given number of retries. |
ConnectorResponse |
sendAndReceive(byte[] request,
Url target,
HttpRequestResponseHeader header)
Send a request and receive a response using the http connector. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpConnectorSessionImpl()
| Method Detail |
|---|
public ConnectorResponse sendAndReceive(byte[] request,
Url target,
HttpRequestResponseHeader header)
throws RemoteException,
ResourceException,
ConnectorException
sendAndReceive in interface HttpConnectorSessionInterfacerequest - the requesttarget - the target hostheader - the request response header object
RemoteException - in case of a bean error
ResourceException - in case of a connector error
ConnectorException - in case of a error on transport layerpublic void requestSend(ConnectorContext context)
requestSend in interface HttpConnectorEventListenercontext - the context set for the connector handle
public void responseReceived(int resultCode,
byte[] response,
ConnectorContext context)
responseReceived in interface HttpConnectorEventListenerresultCode - the HTTP status coderesponse - the HTTP responsecontext - the context set for the connector handlepublic void requestSendWithRetry(ConnectorContext context)
requestSendWithRetry in interface HttpConnectorEventListenercontext - the context set for the connector handle
public void responseReceivedAfterRetry(int numberOfRetries,
byte[] responseData,
ConnectorContext context)
responseReceivedAfterRetry in interface HttpConnectorEventListenernumberOfRetries - the number of retriesresponseData - the HTTP response datacontext - the context set for the connector handle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||