Interface RemoteSystemClient
- All Known Implementing Classes:
DefaultRemoteSystemClient,TestRemoteSystemClient
public interface RemoteSystemClient
REST interface to a remote system.
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Map>post(@NotNull ConsumedDestinationModel destination, org.springframework.http.HttpEntity<Map<String, Object>> entity) Deprecated, for removal: This API element is subject to removal in a future version.<T,U> org.springframework.http.ResponseEntity<T> post(@NotNull ConsumedDestinationModel destination, org.springframework.http.HttpEntity<U> entity, Class<T> responseType) Performs POST request to the remote system with a parametrized response type.<T,U> org.springframework.http.ResponseEntity<T> post(@NotNull ConsumedDestinationModel destination, org.springframework.http.HttpEntity<U> entity, Class<T> responseType, String additionalPath) Performs POST request to the remote system with a parametrized response type.
-
Method Details
-
post
@Deprecated(since="2211", forRemoval=true) org.springframework.http.ResponseEntity<Map> post(@NotNull @NotNull ConsumedDestinationModel destination, org.springframework.http.HttpEntity<Map<String, Object>> entity) Deprecated, for removal: This API element is subject to removal in a future version.Usepost(ConsumedDestinationModel, HttpEntity, Class)instead.Performs POST request to the remote system.- Parameters:
destination- a remote system info, e.g. URL, to which the request has to be sent.entity- an entity to use for the POST request body.- Returns:
- result of the POST request.
-
post
<T,U> org.springframework.http.ResponseEntity<T> post(@NotNull @NotNull ConsumedDestinationModel destination, org.springframework.http.HttpEntity<U> entity, Class<T> responseType) Performs POST request to the remote system with a parametrized response type.- Type Parameters:
T- Type of response entityU- Type of request entity- Parameters:
destination- a remote system info, e.g. URL, to which the request has to be sent.entity- an entity to use for the POST request body.responseType- the class type that the HTTP response will contain- Returns:
- A ResponseEntity with the contents of the REST call response
-
post
<T,U> org.springframework.http.ResponseEntity<T> post(@NotNull @NotNull ConsumedDestinationModel destination, org.springframework.http.HttpEntity<U> entity, Class<T> responseType, String additionalPath) Performs POST request to the remote system with a parametrized response type.- Type Parameters:
T- Type of response entityU- Type of request entity- Parameters:
destination- a remote system info, e.g. URL, to which the request has to be sent.entity- an entity to use for the POST request body.responseType- the class type that the HTTP response will containadditionalPath- additional request path added to thedestinationURL- Returns:
- A ResponseEntity with the contents of the REST call response
-
post(ConsumedDestinationModel, HttpEntity, Class)instead.