public class SocketOperations extends Object
| Constructor and Description |
|---|
SocketOperations() |
| Modifier and Type | Method and Description |
|---|---|
void |
send(RequesterConnection connection,
RequesterConfig config,
Object content,
String outputEncoding)
Sends the data using the client associated to the
RequesterConnection. |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,SocketAttributes> |
sendAndReceive(RequesterConnection connection,
RequesterConfig config,
Object content,
String outputEncoding)
Sends the data using the client associated to the
RequesterConnection and
then blocks until a response is received or the timeout is met, in which case the
operation will return a null payload. |
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,SocketAttributes> sendAndReceive(@Connection RequesterConnection connection, @UseConfig RequesterConfig config, @Content Object content, @Optional @Summary(value="Encoding to use when the data to serialize is of String type") String outputEncoding) throws org.mule.runtime.api.connection.ConnectionException, IOException
RequesterConnection and
then blocks until a response is received or the timeout is met, in which case the
operation will return a null payload.content - data that will be serialized and sent through the socket.outputEncoding - encoding that will be used to serialize the data if its type is String.org.mule.runtime.api.connection.ConnectionException - if the connection couldn't be established, if the remote host was unavailable.IOExceptionpublic void send(@Connection
RequesterConnection connection,
@UseConfig
RequesterConfig config,
@Content
Object content,
@Optional @Summary(value="Encoding to use when the data to serialize is of String type")
String outputEncoding)
throws org.mule.runtime.api.connection.ConnectionException,
IOException
RequesterConnection.content - data that will be serialized and sent through the socket.outputEncoding - encoding that will be used to serialize the data if its type is String.org.mule.runtime.api.connection.ConnectionException - if the connection couldn't be established, if the remote host was unavailable.IOExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.