Interface RequestSpecializer
public interface RequestSpecializer
When using an Amplifier as a client for REST Webservices it may be required to specialize the request that will be created.
For exemple adding special Headers, additionals parameters in the body etc...
The specializer will be applied on all the webservices methods present in the Amplifier class.
- Author:
- mlaroche
-
Method Summary
Modifier and TypeMethodDescriptionvoidspecialize(HttpRequestBuilder httpRequestBuilder, WebServiceDefinition webServiceDefinition, Map<String, Object> namedArgs, io.vertigo.connectors.httpclient.HttpClientConnector httpClientConnector) Specialize the request that will be created by the amplifier
-
Method Details
-
specialize
void specialize(HttpRequestBuilder httpRequestBuilder, WebServiceDefinition webServiceDefinition, Map<String, Object> namedArgs, io.vertigo.connectors.httpclient.HttpClientConnector httpClientConnector) Specialize the request that will be created by the amplifier- Parameters:
httpRequestBuilder- the builder to customize the requestwebServiceDefinition- the webservice definitionnamedArgs- the actual parameters that are provided by the callerhttpClientConnector- the connector that will be used to perform the actual HttpRequest
-