Interface IncomingHttpRequestActivity
-
- All Superinterfaces:
HttpActivity
public interface IncomingHttpRequestActivity extends HttpActivity
An incoming request activity, created when an HTTP request is received by the RA. Sending a response will end the activity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpResponse
createResponse(int statusCode, String reason)
Create an HTTP response for the incoming requestvoid
sendResponse(HttpResponse response)
Send a response for the request that initiated this activity.-
Methods inherited from interface com.opencloud.slee.resources.http.HttpActivity
getRequest
-
-
-
-
Method Detail
-
createResponse
HttpResponse createResponse(int statusCode, String reason)
Create an HTTP response for the incoming request- Parameters:
statusCode
- the response status codereason
- user readable description of status, eg "OK", "Server Error" etc.- Returns:
- the new HTTP response object
-
sendResponse
void sendResponse(HttpResponse response) throws IOException
Send a response for the request that initiated this activity. This will automatically end the activity.- Parameters:
response
- the response to send- Throws:
IOException
- if unable to send the response
-
-