Interface VertxHttpBinding
- All Known Implementing Classes:
DefaultVertxHttpBinding
public interface VertxHttpBinding
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleResponse(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange, io.vertx.core.AsyncResult<io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer>> response) Handles theHttpResponsereturned 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 theHttpResponsevoidpopulateRequestHeaders(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 theHttpRequestusing the suppliedHeaderFilterStrategyvoidpopulateResponseHeaders(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 theHttpResponseusing the suppliedHeaderFilterStrategyio.vertx.ext.web.client.HttpRequest<io.vertx.core.buffer.Buffer> prepareHttpRequest(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange) Prepares aHttpRequestby setting up the required host, port invalid input: '&' 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 receivedBufferresponse 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 aHttpRequestby setting up the required host, port invalid input: '&' 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 theHttpRequestusing 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 theHttpResponsereturned 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 theHttpResponseusing 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 receivedBufferresponse 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
-