com.opencloud.slee.resources.soap
Interface OutgoingSOAPRequestActivity

All Superinterfaces:
SOAPActivity

public interface OutgoingSOAPRequestActivity
extends SOAPActivity

An outgoing request activity, created when an application sends a SOAP request. The application must attach to the activity in order to receive the response. The activity may optionally end when the response arrives, depending on how this activity was created.


Method Summary
 void endActivity()
          Explicitly end the activity.
 boolean endOnResponse()
          Test if the activity is set to end when a response is received.
 SOAPResponse getResponse()
          Get the response received on this activity.
 
Methods inherited from interface com.opencloud.slee.resources.soap.SOAPActivity
getRequest
 

Method Detail

getResponse

SOAPResponse getResponse()
Get the response received on this activity.

Returns:
the response, or null if a response has not been received yet.

endOnResponse

boolean endOnResponse()
Test if the activity is set to end when a response is received.

Returns:
true if the activity will automatically end when a response is received.

endActivity

void endActivity()
Explicitly end the activity. This is only permitted if endOnResponse() is false. The application must call this to end the activity if it has requested the activity to remain alive after the response is received, using SOAPProvider.sendRequest(java.net.URL,javax.xml.soap.SOAPMessage,boolean).

Throws:
java.lang.IllegalStateException - if no response has been received, or if the activity is set to end automatically anyway.