public interface OutgoingHttpRequestActivity extends HttpActivity
Modifier and Type | Method and Description |
---|---|
void |
endActivity()
Explicitly end the activity.
|
boolean |
endOnResponse()
Is the activity set to end when a response is received?
|
HttpResponse |
getResponse()
Get the response received on this activity.
|
void |
sendRequest()
Send the request associated with this activity.
|
getRequest
void sendRequest() throws IOException
HttpProvider.createRequestActivity(HttpRequest)
or HttpProvider.createRequestActivity(HttpRequest, boolean)
IOException
HttpResponse getResponse()
null
if a response has not
been received yet.boolean endOnResponse()
true
if the activity will automatically end when a response
is received.void endActivity()
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 HttpProvider.sendRequest(com.opencloud.slee.resources.http.HttpRequest, boolean)
.IllegalStateException
- if no response has been received, or if the activity is
set to end automatically anyway.