Interface RequestSpecializer
-
public interface RequestSpecializerWhen 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidspecialize(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 Detail
-
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
-
-