Class DefaultRemoteSystemClient
- java.lang.Object
-
- de.hybris.platform.outboundservices.facade.impl.DefaultRemoteSystemClient
-
- All Implemented Interfaces:
RemoteSystemClient
public class DefaultRemoteSystemClient extends java.lang.Object implements RemoteSystemClient
Default implementation of theRemoteSystemClientthat usesRestOperationsfor communication with the remote system.
-
-
Constructor Summary
Constructors Constructor Description DefaultRemoteSystemClient(@NotNull IntegrationRestTemplateFactory factory)Instantiates this client with required dependencies.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<java.util.Map>post(@NotNull ConsumedDestinationModel destination, org.springframework.http.HttpEntity<java.util.Map<java.lang.String,java.lang.Object>> entity)Performs POST request to the remote system.
-
-
-
Constructor Detail
-
DefaultRemoteSystemClient
public DefaultRemoteSystemClient(@NotNull @NotNull IntegrationRestTemplateFactory factory)Instantiates this client with required dependencies.- Parameters:
factory- implementation of theIntegrationRestTemplateFactoryto use in this client for creating theRestOperations.
-
-
Method Detail
-
post
public org.springframework.http.ResponseEntity<java.util.Map> post(@NotNull @NotNull ConsumedDestinationModel destination, org.springframework.http.HttpEntity<java.util.Map<java.lang.String,java.lang.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.
-
-