Interface RestCall

All Known Implementing Classes:
RestCallImpl

public interface RestCall
When the created client instance has a CallHandler installed, the handler's CallHandler.handleCall(RestCallContext) method will be called before the actual RestTemplate method is invoked. A RestCall instance contains selected call parameters for the RestTemplate call, which the call handler may modify before the RestTemplate instance is invoked.
Author:
count
  • Method Details

    • getPlan

      Plan getPlan()
    • getHttpBody

      Object getHttpBody()
      Returns:
      the HttpEntity to make the REST call. Provides access to HTTP headers and request body.
    • setHttpBody

      void setHttpBody(Object body)
    • getHttpMethod

      String getHttpMethod()
      Returns:
      the HTTP method that will be used to call the resource.
    • setHttpMethod

      void setHttpMethod(String httpMethod)
      Set a new HttpMethod to call the REST resource. Use with care.
      Parameters:
      httpMethod - the new HttpMethod that should be used instead to call the resource.
    • getUri

      String getUri()
    • setUri

      void setUri(String uri)
    • getHeaders

      Map<String,List<Object>> getHeaders()
    • getPathParams

      Map<String,Object> getPathParams()
    • getResponseType

      Type getResponseType()
    • getQueryParams

      Map<String,List<Object>> getQueryParams()
    • getFormParams

      Map<String,List<Object>> getFormParams()