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 Type
    Method
    Description
    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
  • 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 request
      webServiceDefinition - the webservice definition
      namedArgs - the actual parameters that are provided by the caller
      httpClientConnector - the connector that will be used to perform the actual HttpRequest