Class SampleClient<I,​O>

  • Type Parameters:
    I - the input type of the client
    O - the output type of the client Examples: SampleClient<JsonNode, InputStream> indicates that the client accepts a JsonNode and returns an InputStream SampleClient<InputStream, Void> indicates that the client accepts an InputStream and returns nothing

    public class SampleClient<I,​O>
    extends Object
    Sample client used throughout the sample project when demonstrating how to send data to a target system and, potentially, return a response. The generic input/output types allow each sample to control the types of data used. This is only a sample. Connector developers should not use this class directly. In an actual connector implementation, this would be replaced by the actual client for the target system.
    • Constructor Detail

      • SampleClient

        public SampleClient()
    • Method Detail

      • send

        public O send​(I input)
        Sends the input to the target system and returns the output. This is only used in sample code so it doesn't actually do anything.
        Parameters:
        input - the input
        Returns:
        the output