| java.lang.Object |
| ↳ |
net.schmizz.sshj.connection.channel.forwarded.RemotePortForwarder.Forward |
Class Overview
Represents a particular forwarding. From RFC 4254, s. 7.1
The 'address to bind' and 'port number to bind' specify the IP
address (or domain name) and port on which connections for forwarding
are to be accepted. Some strings used for 'address to bind' have
special-case semantics.
o "" means that connections are to be accepted on all protocol
families supported by the SSH implementation.
o "0.0.0.0" means to listen on all IPv4 addresses.
o "::" means to listen on all IPv6 addresses.
o "localhost" means to listen on all protocol families supported by
the SSH implementation on loopback addresses only ([RFC3330] and
[RFC3513]).
o "127.0.0.1" and "::1" indicate listening on the loopback
interfaces for IPv4 and IPv6, respectively.
Summary
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
private
final
String
address
Public Constructors
public
RemotePortForwarder.Forward
(int port)
Creates this forward with address as "" and specified port.
public
RemotePortForwarder.Forward
(String address)
Creates this forward with specified address and port as 0.
public
RemotePortForwarder.Forward
(String address, int port)
Creates this forward with specified address and port number.
Parameters
| address
| Address to bind |
| port
| Port number
|
Public Methods
public
boolean
equals
(Object obj)
public
String
getAddress
()
Returns
- the address represented by this forward.
public
int
getPort
()
Returns
- the port represented by this forward.
public
String
toString
()