Class DefaultRemoteSystemClient
java.lang.Object
de.hybris.platform.outboundservices.facade.impl.DefaultRemoteSystemClient
- All Implemented Interfaces:
RemoteSystemClient
Default implementation of the
RemoteSystemClient that uses RestOperations for
communication with the remote system.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRemoteSystemClient(@NotNull IntegrationRestTemplateFactory factory) Instantiates this client with required dependencies. -
Method Summary
-
Constructor Details
-
DefaultRemoteSystemClient
Instantiates this client with required dependencies.- Parameters:
factory- implementation of theIntegrationRestTemplateFactoryto use in this client for creating theRestOperations.
-
-
Method Details
-
post
public org.springframework.http.ResponseEntity<Map> post(@NotNull @NotNull ConsumedDestinationModel destination, org.springframework.http.HttpEntity<Map<String, Object>> entity) Description copied from interface:RemoteSystemClientPerforms POST request to the remote system.- Specified by:
postin interfaceRemoteSystemClient- 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.
-