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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 ifendOnResponse()
isfalse
. The application must call this to end the activity if it has requested the activity to remain alive after the response is received, usingSOAPProvider.sendRequest(java.net.URL,javax.xml.soap.SOAPMessage,boolean)
.- Throws:
IllegalStateException
- if no response has been received, or if the activity is set to end automatically anyway.
-
-