Class PortForward.PortForwardResult

java.lang.Object
io.kubernetes.client.PortForward.PortForwardResult
Enclosing class:
PortForward

public static class PortForward.PortForwardResult extends Object
PortForwardResult contains the result of an Attach call, it includes streams for stdout stderr and stdin.
  • Constructor Details

  • Method Details

    • init

      public void init() throws IOException
      Initialize the connection. Must be called after the web socket has been opened.
      Throws:
      IOException
    • getOutboundStream

      public OutputStream getOutboundStream(int port)
      Get the output stream for the specified port number (e.g. 80)
      Parameters:
      port - The port number to get the stream for.
      Returns:
      The OutputStream for the specified port, null if there is no such port.
    • getErrorStream

      public InputStream getErrorStream(int port)
      Get the error stream for a port number (e.g. 80)
      Parameters:
      port - The port number to get the stream for.
      Returns:
      The error stream, or null if there is no such port.
    • getInputStream

      public InputStream getInputStream(int port) throws IOException
      Get the input stream for a port number (e.g. 80)
      Parameters:
      port - The port number to get the stream for.
      Returns:
      The input stream, or null if no such port exists.
      Throws:
      IOException