Interface ReactiveRequestProcessor


  • public interface ReactiveRequestProcessor
    Since:
    5.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void processRequest​(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.EntityDetails entityDetails, org.apache.hc.core5.http.nio.ResponseChannel responseChannel, org.apache.hc.core5.http.protocol.HttpContext context, org.reactivestreams.Publisher<java.nio.ByteBuffer> requestBody, org.apache.hc.core5.function.Callback<org.reactivestreams.Publisher<java.nio.ByteBuffer>> responseBodyCallback)
      Processes the actual HTTP request.
    • Method Detail

      • processRequest

        void processRequest​(org.apache.hc.core5.http.HttpRequest request,
                            org.apache.hc.core5.http.EntityDetails entityDetails,
                            org.apache.hc.core5.http.nio.ResponseChannel responseChannel,
                            org.apache.hc.core5.http.protocol.HttpContext context,
                            org.reactivestreams.Publisher<java.nio.ByteBuffer> requestBody,
                            org.apache.hc.core5.function.Callback<org.reactivestreams.Publisher<java.nio.ByteBuffer>> responseBodyCallback)
                     throws org.apache.hc.core5.http.HttpException,
                            java.io.IOException
        Processes the actual HTTP request. The handler can choose to send response messages immediately inside the call or asynchronously at some later point.
        Parameters:
        request - the actual request.
        entityDetails - the request entity details or null if the request does not enclose an entity.
        responseChannel - the response channel.
        context - the actual execution context.
        requestBody - a reactive stream representing the request body.
        responseBodyCallback - a callback to invoke with the response body, if any.
        Throws:
        org.apache.hc.core5.http.HttpException - in case of HTTP protocol violation.
        java.io.IOException - in case of an I/O error.