public class SocketChannelResponder extends Object implements ChannelResponder<SocketChannel>
| Modifier and Type | Field and Description |
|---|---|
protected List<ChannelResponse> |
responses |
protected SocketChannel |
socketChannel |
| Constructor and Description |
|---|
SocketChannelResponder(SocketChannel socketChannel) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResponse(ChannelResponse response) |
SocketChannel |
getChannel() |
List<ChannelResponse> |
getResponses() |
void |
respond()
Writes the responses to the underlying channel.
|
protected final List<ChannelResponse> responses
protected final SocketChannel socketChannel
public SocketChannelResponder(SocketChannel socketChannel)
public SocketChannel getChannel()
getChannel in interface ChannelResponder<SocketChannel>public List<ChannelResponse> getResponses()
getResponses in interface ChannelResponder<SocketChannel>public void addResponse(ChannelResponse response)
addResponse in interface ChannelResponder<SocketChannel>response - adds the given response to the list of responsespublic void respond()
throws IOException
ChannelResponderrespond in interface ChannelResponder<SocketChannel>IOExceptionCopyright © 2019 Apache NiFi Project. All rights reserved.