|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object proxy.DirectProxy
public final class DirectProxy
Nested Class Summary | |
---|---|
static class |
DirectProxy.AllowProxyConnectionCallback
|
private class |
DirectProxy.DirectConViaHTTPProxy
This class is used to transfer requests via the selected proxy |
private class |
DirectProxy.RememberedRequestRight
|
static class |
DirectProxy.RequestInfo
|
private static class |
DirectProxy.SendAnonWarning
This class is used to inform the user that he tries to send requests although anonymity mode is off. |
Field Summary | |
---|---|
private static java.lang.String |
GENERAL_RULE
|
private java.net.ServerSocket |
m_socketListener
|
private AnonService |
m_tor
|
private static DirectProxy.AllowProxyConnectionCallback |
ms_callback
|
private java.lang.Object |
THREAD_SYNC
|
private java.lang.Thread |
threadRunLoop
|
Fields inherited from interface anon.AnonService |
---|
ANONLIB_VERSION |
Constructor Summary | |
---|---|
DirectProxy(java.net.ServerSocket s)
|
Method Summary | |
---|---|
void |
addEventListener(AnonServiceEventListener l)
Adds an AnonServiceEventListener. |
AnonChannel |
createChannel(int a_type)
Creates a new AnonChannel, which could be used for transmitting data. |
protected ImmutableProxyInterface |
getProxyInterface()
|
int |
initialize(AnonServerDescription a_mixCascade,
IServiceContainer a_serviceContainer,
TermsAndConditionConfirmation termsConfirmation)
Initializes this AnonService. |
boolean |
isConnected()
Returns true if this Anon Service is connected, e.g. |
void |
removeEventListener(AnonServiceEventListener l)
Removes an AnonServiceEventListener. |
void |
removeEventListeners()
|
void |
run()
|
static void |
setAllowUnprotectedConnectionCallback(DirectProxy.AllowProxyConnectionCallback a_callback)
|
int |
setProxy(IMutableProxyInterface a_proxyInterface)
Sets the settings ofr the proxy, which should be used to establish network connections |
void |
shutdown(boolean a_bResetTransferredBytes)
Disconnects form the server. |
boolean |
startService()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String GENERAL_RULE
private static DirectProxy.AllowProxyConnectionCallback ms_callback
private AnonService m_tor
private java.net.ServerSocket m_socketListener
private final java.lang.Object THREAD_SYNC
private volatile java.lang.Thread threadRunLoop
Constructor Detail |
---|
public DirectProxy(java.net.ServerSocket s)
Method Detail |
---|
public static void setAllowUnprotectedConnectionCallback(DirectProxy.AllowProxyConnectionCallback a_callback)
public AnonChannel createChannel(int a_type) throws java.net.ConnectException
AnonService
AnonChannel
for more information.
createChannel
in interface AnonService
a_type
- the type of the created channel
java.net.ConnectException
public void addEventListener(AnonServiceEventListener l)
AnonService
AnonServiceEventListener
.
addEventListener
in interface AnonService
l
- Listener to addpublic void removeEventListeners()
removeEventListeners
in interface AnonService
public void removeEventListener(AnonServiceEventListener l)
AnonService
removeEventListener
in interface AnonService
l
- Listener, which will be removedpublic int setProxy(IMutableProxyInterface a_proxyInterface)
AnonService
setProxy
in interface AnonService
public boolean isConnected()
AnonService
isConnected
in interface AnonService
public int initialize(AnonServerDescription a_mixCascade, IServiceContainer a_serviceContainer, TermsAndConditionConfirmation termsConfirmation)
AnonService
initialize
in interface AnonService
a_mixCascade
- AnonServer to use
public boolean startService()
public void run()
run
in interface java.lang.Runnable
public void shutdown(boolean a_bResetTransferredBytes)
AnonService
shutdown
in interface AnonService
protected ImmutableProxyInterface getProxyInterface()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |