|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object forward.ForwardUtils
public class ForwardUtils
This is the implementation of some helper methods for the forwarding client and server. This class is a singleton.
Field Summary | |
---|---|
(package private) ImmutableProxyInterface |
m_proxyInterface
The current proxy interface. |
private static ForwardUtils |
ms_fuInstance
Stores the instance of ForwardUtils (Singleton). |
Constructor Summary | |
---|---|
private |
ForwardUtils()
This creates a new instance of ForwardUtils with disabled proxy settings. |
Method Summary | |
---|---|
java.net.Socket |
createConnection(java.lang.String a_host,
int a_port)
Creates a new connection to the specified target using the current firewall settings. |
IStreamConnection |
createForwardingConnection(IAddress a_address)
Creates a ForwardConnection according to the Type of the given Address. |
ProxyConnection |
createProxyConnection(java.lang.String a_host,
int a_port)
Creates a new connection to the specified target using the current firewall settings. |
static ForwardUtils |
getInstance()
Returns the instance of ForwardUtils (Singleton). |
void |
setProxySettings(ImmutableProxyInterface a_proxyInterface)
This changes the proxy settings for all new forwarding connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static ForwardUtils ms_fuInstance
ImmutableProxyInterface m_proxyInterface
Constructor Detail |
---|
private ForwardUtils()
Method Detail |
---|
public static ForwardUtils getInstance()
public void setProxySettings(ImmutableProxyInterface a_proxyInterface)
a_proxyInterface
- the proxy interfacepublic ProxyConnection createProxyConnection(java.lang.String a_host, int a_port)
a_host
- The hostname or IP address of the target.a_port
- The port number of the connection target.
public IStreamConnection createForwardingConnection(IAddress a_address)
public java.net.Socket createConnection(java.lang.String a_host, int a_port)
a_host
- The hostname or IP address of the target.a_port
- The port number of the connection target.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |