Class DefaultRemoteSystemClient

  • All Implemented Interfaces:
    RemoteSystemClient

    public class DefaultRemoteSystemClient
    extends java.lang.Object
    implements RemoteSystemClient
    Default implementation of the RemoteSystemClient that uses RestOperations for communication with the remote system.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultRemoteSystemClient

        public DefaultRemoteSystemClient​(@NotNull
                                         @NotNull IntegrationRestTemplateFactory factory)
        Instantiates this client with required dependencies.
        Parameters:
        factory - implementation of the IntegrationRestTemplateFactory to use in this client for creating the RestOperations.
    • 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: RemoteSystemClient
        Performs POST request to the remote system.
        Specified by:
        post in interface RemoteSystemClient
        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.