PortForwardingProtocol

public enum PortForwardingProtocol

Port forwarding supported protocols.

Enum Constants

TCP

public static final PortForwardingProtocol TCP

TCP protocol.

Methods

format

public static String format(PortForwardingProtocol protocol)

Get the debug description of port forwarding protocol

Parameters
  • protocol – The port forwarding protocol

Returns

The deubg description of port forwarding protocol

toString

public String toString()

Get the debug description

Returns

The debug description of current port forwarding protocol

value

public int value()

Get value of port forwarding protocol.

Returns

The value of port forwarding protocol

valueOf

public static PortForwardingProtocol valueOf(int protocol)

Get port forwarding protocol from protocol value.

Parameters
  • protocol – The protocol value

Throws
Returns

The port forwarding protocol