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 Detail

      • createResponse

        HttpResponse createResponse​(int statusCode,
                                    String reason)
        Create an HTTP response for the incoming request
        Parameters:
        statusCode - the response status code
        reason - 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