public interface IncomingHttpRequestActivity extends HttpActivity
Modifier and Type | Method and Description |
---|---|
HttpResponse |
createResponse(int statusCode,
String reason)
Create an HTTP response for the incoming request
|
void |
sendResponse(HttpResponse response)
Send a response for the request that initiated this activity.
|
getRequest
HttpResponse createResponse(int statusCode, String reason)
statusCode
- the response status codereason
- user readable description of status, eg "OK", "Server Error" etc.void sendResponse(HttpResponse response) throws IOException
response
- the response to sendIOException
- if unable to send the response