|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mqe.adapters.MQeCommunicationsAdapter | +--com.ibm.mqe.adapters.MQeMidpHttpAdapter
MQeMidpHttpAdapter extends the MQeAdapter to provide communication support for the HTTP 1.1 protocol.
The adapter provides read and write calls using the MIDP HttpConnector.
MQeAdapter
Field Summary |
Constructor Summary | |
MQeMidpHttpAdapter()
|
Method Summary | |
void |
activate(MQePropertyProvider info)
Initialises a new MQeMidpHttpAdapter object. |
void |
close()
Close the adapter. |
void |
open()
Opens a socket for use. |
byte[] |
read()
Reads incoming data from the HTTP stream. |
void |
temporaryClose()
Close the adapter if the adapter is non persistent. |
MQeCommunicationsAdapter |
waitForContact(MQePropertyProvider info)
Wait for an incoming request then return an adapter instance that can cope with the conversation. |
void |
writeData(byte[] data)
Writes bytes to the HTTP stream. |
void |
writeResponse(byte[] data)
The writeResponse() method should not be called for this adapter. |
Methods inherited from class com.ibm.mqe.adapters.MQeCommunicationsAdapter |
createNewAdapter, isStopDemanded, isStopRequested |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MQeMidpHttpAdapter()
Method Detail |
public void activate(MQePropertyProvider info) throws java.lang.Exception
activate
in class MQeCommunicationsAdapter
info
- Contains the parameters required to activate the adapter.
java.lang.Exception
- Does not create exceptions, only throws exceptions created by
the methods that activate calls.MQeCommunicationsAdapter.COMMS_ADAPTER_TIMEOUT
,
MQeCommunicationsAdapter.COMMS_ADAPTER_PKTSIZE
,
MQeCommunicationsAdapter.COMMS_ADAPTER_RETRIES
,
MQeCommunicationsAdapter.COMMS_ADAPTER_SERVLET
,
MQeCommunicationsAdapter.COMMS_ADAPTER_PORT
,
MQeCommunicationsAdapter.COMMS_ADAPTER_ADDRESS
public void close() throws java.lang.Exception
close
in class MQeCommunicationsAdapter
java.lang.Exception
- Always succeeds, unless an underlying call fails before us.public void temporaryClose() throws java.lang.Exception
temporaryClose
in class MQeCommunicationsAdapter
java.lang.Exception
public MQeCommunicationsAdapter waitForContact(MQePropertyProvider info) throws java.lang.Exception
waitForContact
in class MQeCommunicationsAdapter
info
- unused
java.lang.Exception
public void open() throws java.lang.Exception
If this is a listening adapter then create a new server socket. Otherwise create a new socket.
open
in class MQeCommunicationsAdapter
java.lang.Exception
public byte[] read() throws java.lang.Exception
read
in class MQeCommunicationsAdapter
java.lang.Exception
public void writeData(byte[] data) throws java.lang.Exception
writeData
in class MQeCommunicationsAdapter
data
- byte[] containing the data to be written.
java.lang.Exception
public void writeResponse(byte[] data) throws java.lang.Exception
writeResponse
in class MQeCommunicationsAdapter
data
- Byte array containing the data to be written.
java.lang.Exception
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |