| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection that was held by the client, leaving it unusable.
|
SocketAttributes |
getAttributes() |
InputStream |
read()
This methods blocks until new data is available or
SocketProperties.getClientTimeout() is reached, in which case a
ReadingTimeoutException is thrown. |
void |
write(Object data,
String outputEncoding) |
void write(Object data, String outputEncoding) throws IOException
data - to be written into the socketoutputEncoding - to be used when writing contents of type String. If not specified, it defaults to the encoding
specified in the config AbstractSocketConfig. If no default is specified AbstractSocketConfig either,
mule's default encoding is used.IOExceptionInputStream read() throws IOException
SocketProperties.getClientTimeout() is reached, in which case a
ReadingTimeoutException is thrown.InputStream with the information read from the socket.IOExceptionvoid close()
throws IOException
IOException - if an I/O error occurs when closing the socketSocketAttributes getAttributes()
SocketAttributes with information associated to the client's connection.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.