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