|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpConnection
This is the interface provided by the commons http connector.
| Method Summary | |
|---|---|
void |
close()
Initiates close of the connection handle at the application level. |
byte[] |
sendAndReceive(byte[] message)
Send a http message using retries to the peer associated with the connection in use and afterwards receive a response from it. |
void |
setEventListener(HttpConnectorEventListener listener,
ConnectorContext context)
Sets the listener for http connector events like request send and response received. |
void |
setRequestResponseHeader(HttpRequestResponseHeader header)
Sets http request header values used whilst sending the request and http response header validated whilst receiveing the response. |
| Method Detail |
|---|
byte[] sendAndReceive(byte[] message)
throws ResourceException,
ConnectorException
message - the request message that have to be send to the peer.
ResourceException - indicating an error while sending a request
and receiving a response detected by the application server
ConnectorException - in case of a failure on transport level
whilst sending/receiving the request/responsevoid close()
void setEventListener(HttpConnectorEventListener listener,
ConnectorContext context)
throws ResourceException
listener - the listener providing callback methods used by the
connectorcontext - used whilst callbacks
ResourceException - if appserver fails performing the call
on the managed connection
void setRequestResponseHeader(HttpRequestResponseHeader header)
throws ResourceException
header - contains request header to set and response header to
validate
ResourceException - in case of appserver failure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||