|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnu.najt.kecon.jsocksproxy.JSocksProxy
public class JSocksProxy
This SOCKS proxy supports basic unauthenticated v4 and v5 versions.
| Nested Class Summary | |
|---|---|
protected class |
JSocksProxy.ListeningThread
This thread handle incoming connections for a specific listening address |
| Field Summary | |
|---|---|
static java.lang.String |
CONFIGURATION_XML
|
static long |
RELOAD_INTERVAL
|
| Constructor Summary | |
|---|---|
JSocksProxy()
Constructor |
|
| Method Summary | |
|---|---|
protected void |
checkListeningThreads()
Check that the listeningAddresses property matches all binding threads. |
java.lang.String |
getConfigurationBasePathPropertyKey()
|
java.util.Set<SocksImplementation> |
getConnections()
|
static java.lang.String |
getIpAndPort(java.net.InetSocketAddress inetSocketAddress)
Create a string representation of a InetSocketAddress |
static java.lang.String |
getIpAndPort(java.net.Socket socket)
Create a string representation of a Socket |
java.lang.String |
getJndiName()
|
java.net.InetAddress |
getOutgoingSourceAddress()
|
boolean |
isAllowSocks4()
|
boolean |
isAllowSocks5()
|
static void |
main(java.lang.String[] args)
The main method for this SocksImplementation. |
void |
readConfiguration()
Reading and update configuration from configuration.xml |
void |
setConfigurationBasePathPropertyKey(java.lang.String configurationBasePathPropertyKey)
Sets property key for the configuration base path |
void |
setJndiName(java.lang.String jndiName)
Sets the jndiName |
void |
start()
Start method |
static void |
startService()
Static start method |
void |
stop()
Stop method |
static void |
stopService()
Static stop method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONFIGURATION_XML
public static final long RELOAD_INTERVAL
| Constructor Detail |
|---|
public JSocksProxy()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - A String[] containing startup parameters.public java.lang.String getJndiName()
getJndiName in interface JSocksProxyMBean
public void setJndiName(java.lang.String jndiName)
throws javax.naming.NamingException
JSocksProxyMBean
setJndiName in interface JSocksProxyMBeanjndiName - the jndiName
javax.naming.NamingExceptionpublic java.lang.String getConfigurationBasePathPropertyKey()
getConfigurationBasePathPropertyKey in interface JSocksProxyMBeanpublic void setConfigurationBasePathPropertyKey(java.lang.String configurationBasePathPropertyKey)
JSocksProxyMBean
setConfigurationBasePathPropertyKey in interface JSocksProxyMBeanconfigurationBasePathPropertyKey - the configuration base path property keypublic static void startService()
public static void stopService()
public void start()
start in interface JSocksProxyMBeanpublic void stop()
stop in interface JSocksProxyMBeanprotected void checkListeningThreads()
public void readConfiguration()
public java.net.InetAddress getOutgoingSourceAddress()
public java.util.Set<SocksImplementation> getConnections()
public static java.lang.String getIpAndPort(java.net.InetSocketAddress inetSocketAddress)
InetSocketAddress
inetSocketAddress - the address that should be represented
public static java.lang.String getIpAndPort(java.net.Socket socket)
Socket
socket - the address that should be represented
public boolean isAllowSocks4()
public boolean isAllowSocks5()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||