Interface VertxHttpBinding

All Known Implementing Classes:
DefaultVertxHttpBinding

public interface VertxHttpBinding
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleResponse(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange, io.vertx.core.AsyncResult<io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer>> response)
    Handles the HttpResponse returned from the HTTP endpoint invocation
    handleResponseFailure(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange, io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> result)
    Handles failures returned in the HttpResponse
    void
    populateRequestHeaders(org.apache.camel.Exchange exchange, io.vertx.ext.web.client.HttpRequest<io.vertx.core.buffer.Buffer> request, org.apache.camel.spi.HeaderFilterStrategy strategy)
    Populates request headers on the HttpRequest using the supplied HeaderFilterStrategy
    void
    populateResponseHeaders(org.apache.camel.Exchange exchange, io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> response, org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
    Populates response headers on the exchange from the HttpResponse using the supplied HeaderFilterStrategy
    io.vertx.ext.web.client.HttpRequest<io.vertx.core.buffer.Buffer>
    prepareHttpRequest(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange)
    Prepares a HttpRequest by setting up the required host, port & part details specified on the endpoint configuration
    processResponseBody(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange, io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> result, boolean exceptionOnly)
    Processes the received Buffer response body in the HttpResponse
  • Method Details

    • prepareHttpRequest

      io.vertx.ext.web.client.HttpRequest<io.vertx.core.buffer.Buffer> prepareHttpRequest(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange) throws Exception
      Prepares a HttpRequest by setting up the required host, port & part details specified on the endpoint configuration
      Throws:
      Exception
    • populateRequestHeaders

      void populateRequestHeaders(org.apache.camel.Exchange exchange, io.vertx.ext.web.client.HttpRequest<io.vertx.core.buffer.Buffer> request, org.apache.camel.spi.HeaderFilterStrategy strategy)
      Populates request headers on the HttpRequest using the supplied HeaderFilterStrategy
    • handleResponse

      void handleResponse(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange, io.vertx.core.AsyncResult<io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer>> response) throws Exception
      Handles the HttpResponse returned from the HTTP endpoint invocation
      Throws:
      Exception
    • populateResponseHeaders

      void populateResponseHeaders(org.apache.camel.Exchange exchange, io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> response, org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
      Populates response headers on the exchange from the HttpResponse using the supplied HeaderFilterStrategy
    • processResponseBody

      Object processResponseBody(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange, io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> result, boolean exceptionOnly) throws Exception
      Processes the received Buffer response body in the HttpResponse
      Throws:
      Exception
    • handleResponseFailure

      Throwable handleResponseFailure(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange, io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> result) throws Exception
      Handles failures returned in the HttpResponse
      Throws:
      Exception