com.numdata.ssh
Class SshTools.PortForwardingProperties

java.lang.Object
  extended by com.numdata.ssh.SshTools.PortForwardingProperties
Enclosing class:
SshTools

public static class SshTools.PortForwardingProperties
extends Object

Defines local or remote port forwarding properties.


Constructor Summary
SshTools.PortForwardingProperties(String sourceAddress, int sourcePort, String targetAddress, int targetPort)
          Create forwarding properties.
 
Method Summary
 String getSourceAddress()
          Get source address.
 int getSourcePort()
          Get source port.
 String getTargetAddress()
          Get target address.
 int getTargetPort()
          Get target port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshTools.PortForwardingProperties

public SshTools.PortForwardingProperties(@Nullable
                                         String sourceAddress,
                                         int sourcePort,
                                         @Nullable
                                         String targetAddress,
                                         int targetPort)
Create forwarding properties.

Parameters:
sourceAddress - Source address.
sourcePort - Source port.
targetAddress - Target address.
targetPort - Target port.
Method Detail

getSourceAddress

@Nullable
public String getSourceAddress()
Get source address.

Returns:
Source address.

getSourcePort

public int getSourcePort()
Get source port.

Returns:
Source port.

getTargetAddress

@Nullable
public String getTargetAddress()
Get target address.

Returns:
Target address.

getTargetPort

public int getTargetPort()
Get target port.

Returns:
Target port.


Copyright © 2017 Numdata BV. All rights reserved.