Interface VertxHttpBinding
- All Known Implementing Classes:
DefaultVertxHttpBinding
public interface VertxHttpBinding
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 theHttpResponse
returned from the HTTP endpoint invocationhandleResponseFailure
(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange, io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> result) Handles failures returned in theHttpResponse
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 theHttpRequest
using the suppliedHeaderFilterStrategy
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 theHttpResponse
using the suppliedHeaderFilterStrategy
io.vertx.ext.web.client.HttpRequest<io.vertx.core.buffer.Buffer>
prepareHttpRequest
(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange) Prepares aHttpRequest
by setting up the required host, port & part details specified on the endpoint configurationprocessResponseBody
(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange, io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> result, boolean exceptionOnly) Processes the receivedBuffer
response body in theHttpResponse
-
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 aHttpRequest
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 theHttpRequest
using the suppliedHeaderFilterStrategy
-
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 theHttpResponse
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 theHttpResponse
using the suppliedHeaderFilterStrategy
-
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 receivedBuffer
response body in theHttpResponse
- 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 theHttpResponse
- Throws:
Exception
-