Package com.jumio.sdk.kyx.mock
Class RestTemplateMock
java.lang.Object
org.springframework.http.client.support.HttpAccessor
org.springframework.http.client.support.InterceptingHttpAccessor
org.springframework.web.client.RestTemplate
com.jumio.sdk.kyx.mock.RestTemplateMock
- All Implemented Interfaces:
org.springframework.web.client.RestOperations
public class RestTemplateMock
extends org.springframework.web.client.RestTemplate
-
Field Summary
Fields inherited from class org.springframework.http.client.support.HttpAccessor
logger -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.web.client.RestTemplate
acceptHeaderRequestCallback, delete, delete, delete, exchange, exchange, exchange, exchange, exchange, exchange, exchange, exchange, execute, execute, execute, getErrorHandler, getForEntity, getForEntity, getForEntity, getForObject, getForObject, getForObject, getMessageConverters, getUriTemplateHandler, handleResponse, headersExtractor, headForHeaders, headForHeaders, headForHeaders, httpEntityCallback, httpEntityCallback, optionsForAllow, optionsForAllow, optionsForAllow, patchForObject, patchForObject, patchForObject, postForEntity, postForEntity, postForEntity, postForLocation, postForLocation, postForLocation, postForObject, postForObject, postForObject, put, put, put, responseEntityExtractor, setDefaultUriVariables, setErrorHandler, setMessageConverters, setUriTemplateHandlerMethods inherited from class org.springframework.http.client.support.InterceptingHttpAccessor
getInterceptors, getRequestFactory, setInterceptors, setRequestFactoryMethods inherited from class org.springframework.http.client.support.HttpAccessor
createRequest, getClientHttpRequestInitializers, setClientHttpRequestInitializers
-
Constructor Details
-
RestTemplateMock
public RestTemplateMock(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
doExecute
@Nullable protected <T> T doExecute(URI url, @Nullable org.springframework.http.HttpMethod method, @Nullable org.springframework.web.client.RequestCallback requestCallback, @Nullable org.springframework.web.client.ResponseExtractor<T> responseExtractor) throws org.springframework.web.client.RestClientException - Overrides:
doExecutein classorg.springframework.web.client.RestTemplate- Throws:
org.springframework.web.client.RestClientException
-