Class AbstractInternalEndpointClient
java.lang.Object
es.kukenan.smartfi.microservice.transfer.service.backoffice.AbstractEndpointClient
es.kukenan.smartfi.microservice.transfer.service.backoffice.apis.endpoints.AbstractInternalEndpointClient
- Direct Known Subclasses:
GenericProductsInternalEndpoint
Base class with core funcionality for any endpoint implementation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> TextractResponseData(org.springframework.http.ResponseEntity<T> responseEntity) Extract the response data from the givenResponseEntity.Methods inherited from class es.kukenan.smartfi.microservice.transfer.service.backoffice.AbstractEndpointClient
createUri, createUri, defaultRequestHeaders, handleConnectionException, message
-
Field Details
-
endpointBasePath
API base path. -
restTemplate
@Autowired protected InternalProductApiRestTemplateFactory.InternalProductApiRestTemplate restTemplateRest template.
-
-
Constructor Details
-
AbstractInternalEndpointClient
Base constructor.- Parameters:
endpointBasePath- the base path of this endpoint.
-
-
Method Details
-
extractResponseData
protected <T> T extractResponseData(org.springframework.http.ResponseEntity<T> responseEntity) Extract the response data from the givenResponseEntity.- Type Parameters:
T- CoreResponse type.- Parameters:
responseEntity-ResponseEntity.- Returns:
- core response data.
-