public static class PortForward.PortForwardResult extends Object
Constructor and Description |
---|
PortForwardResult(WebSocketStreamHandler handler,
List<Integer> ports)
Constructor
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getErrorStream(int port)
Get the error stream for a port number (e.g.
|
InputStream |
getInputStream(int port)
Get the input stream for a port number (e.g.
|
OutputStream |
getOutboundStream(int port)
Get the output stream for the specified port number (e.g.
|
void |
init()
Initialize the connection.
|
public PortForwardResult(WebSocketStreamHandler handler, List<Integer> ports) throws IOException
handler
- The web socket handlerports
- The list of ports that are being forwarded.IOException
public void init() throws IOException
IOException
public OutputStream getOutboundStream(int port)
port
- The port number to get the stream for.public InputStream getErrorStream(int port)
port
- The port number to get the stream for.public InputStream getInputStream(int port) throws IOException
port
- The port number to get the stream for.IOException
Copyright © 2020. All rights reserved.