public class SSLSocketChannelSender extends SocketChannelSender
| Modifier and Type | Field and Description |
|---|---|
private SSLSocketChannel |
sslChannel |
private SSLContext |
sslContext |
private SSLSocketChannelOutputStream |
sslOutputStream |
channel, socketChannelOutputhost, lastUsed, logger, maxSendBufferSize, port, timeout| Constructor and Description |
|---|
SSLSocketChannelSender(String host,
int port,
int maxSendBufferSize,
SSLContext sslContext,
ComponentLog logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the underlying channel
|
OutputStream |
getOutputStream() |
boolean |
isConnected() |
void |
open()
Opens the connection to the destination.
|
protected void |
write(byte[] data)
Write the given buffer to the underlying channel.
|
getLastUsed, getTimeout, send, send, setTimeoutprivate SSLContext sslContext
private SSLSocketChannel sslChannel
private SSLSocketChannelOutputStream sslOutputStream
public SSLSocketChannelSender(String host, int port, int maxSendBufferSize, SSLContext sslContext, ComponentLog logger)
public void open()
throws IOException
ChannelSenderopen in class SocketChannelSenderIOException - if an error occurred opening the connection.protected void write(byte[] data)
throws IOException
ChannelSenderwrite in class SocketChannelSenderIOExceptionpublic boolean isConnected()
isConnected in class SocketChannelSenderpublic void close()
ChannelSenderclose in class SocketChannelSenderpublic OutputStream getOutputStream()
getOutputStream in class SocketChannelSenderCopyright © 2019 Apache NiFi Project. All rights reserved.