Class HttpExternalSystem

    • Constructor Detail

      • HttpExternalSystem

        public HttpExternalSystem()
    • Method Detail

      • configure

        public void configure​(ExternalSystemData configuration)
        Description copied from class: ExternalSystem
        Configures the external system instance with the provided configuration. The extensions of this class must use this method to initialize their own configuration fields.
        configure in class ExternalSystem
        configuration - Provides the configuration data of the external system
      • send

        public CompletableFuture<ExternalSystemResponse> send​(ExternalSystem.Operation operation,
                                                              Supplier<? extends InputStream> payloadSupplier,
                                                              String path,
                                                              Map<String,​Object> configuration)
        Description copied from class: ExternalSystem
        Sends information to the external system
        Specified by:
        send in class ExternalSystem
        operation - The operation to be applied in the external system with the sent information
        payloadSupplier - A supplier of the input stream with the data to be sent
        path - An optional sequence of segments separated by a slash (/) that be appended to the base external system URI where the information will be eventually sent. It can be null if not needed.
        configuration - Additional information used to configure the send operation
        a CompletableFuture containing the response data coming from the external system
      • getURL

        public String getURL()
        the URL that this HTTP external system communicates with