|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.schmizz.sshj.connection.channel.forwarded.RemotePortForwarder.Forward
public static final class RemotePortForwarder.Forward
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.
| Constructor Summary | |
|---|---|
RemotePortForwarder.Forward(int port)
Creates this forward with address as "" and specified port. |
|
RemotePortForwarder.Forward(String address)
Creates this forward with specified address and port as 0. |
|
RemotePortForwarder.Forward(String address,
int port)
Creates this forward with specified address and port number. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getAddress()
|
int |
getPort()
|
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemotePortForwarder.Forward(int port)
"" and specified port.
port - public RemotePortForwarder.Forward(String address)
address and port as 0.
address -
public RemotePortForwarder.Forward(String address,
int port)
address and port number.
address - address to bindport - port number| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectpublic String getAddress()
public int getPort()
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||