|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.iplanet.trustbase.initiator.transport.XURLTransportAdapter
XURLTransportAdapter provides a XURL based implementation of TransportAdapter using the XURL classes to provide the transportQ
TransportAdapterException
,
ConfigAdapterException
,
ExceptionCodes
,
TransportAdapter
,
ConfigAdapter
,
ExceptionCodes
Constructor Summary | |
XURLTransportAdapter(ConfigAdapter configAdapter)
Construct a XURLTransportAdapter |
Method Summary | |
byte[] |
sendReceive(byte[] data,
java.lang.String location,
java.lang.String messageType)
Send and receive the message data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XURLTransportAdapter(ConfigAdapter configAdapter)
configAdapter
- the config adapter to use
The config information used is summarised below
Property | Description |
<messageType>.http.mimeType | The mime type to use for the given message type |
Method Detail |
public byte[] sendReceive(byte[] data, java.lang.String location, java.lang.String messageType) throws TransportAdapterException, ConfigAdapterException
sendReceive
in interface TransportAdapter
data
- the data to be sentlocation
- the responder URLmessageType
- the type of the message data (e.g. "ocsp");TransportAdapterException
- on any transport errorConfigAdapterException
- if config information cannot be retrieved
Exception codes generated in this class are as follows:
Code | Arguments | Description |
csc-http-noMimeType | String:location,String:messageType | No mime type was registered for this message type |
csc-http-malformedURL | String:location | Location string not a valid URL |
csc-http-writeFailed | String:location | The data could not be sent |
csc-http-readFailed | String:location | The data could not be read |
csc-http-openConnectionFailed | String:location | A connection to the remote host could not be opened |
csc-http-connectFailed | String:location | A connection to the remote host could not be opened |
csc-http-noRouteToHost | String:location | No route to the remote host could be determined |
csc-http-protocolError | String:location | There was a protocol error |
csc-http-socketError | String:location | There was a general network error |
csc-http-unknownHost | String:location | The remote host could not be found |
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |