Package com.boomi.connector.sample
Class SampleClient<I,O>
- java.lang.Object
-
- com.boomi.connector.sample.SampleClient<I,O>
-
- Type Parameters:
I
- the input type of the clientO
- the output type of the client Examples:SampleClient<JsonNode, InputStream>
indicates that the client accepts aJsonNode
and returns anInputStream
SampleClient<InputStream, Void>
indicates that the client accepts anInputStream
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 Summary
Constructors Constructor Description SampleClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description O
send(I input)
Sends the input to the target system and returns the output.
-