|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ssonet.mechanisms.anonymity.JAPAnonLevelChecker
This class implements a thread, which periodically checks the anonymity level of the choosen AnonServer, and calls the
Field Summary | |
(package private) anon.AnonServer |
anonServer
the AnonServer used for this connection |
(package private) java.lang.Thread |
checkerThread
The Thread, in which the checker runs. |
(package private) org.ssonet.net.SSONETContext |
context
the SSONETContext for this connection |
(package private) int |
currentLevel
current anonymity level |
(package private) int |
currentState
Current anonymity state |
(package private) boolean |
debug
for debugging purposes only: switch debug-messages on or off |
(package private) anon.infoservice.InfoService |
infoService
the InfoService to ask for the anonymity level |
(package private) boolean |
running
true, if the checker is running, false otherwise |
(package private) java.net.Socket |
socket
The Socket, which is connected through the AnonServer |
Constructor Summary | |
JAPAnonLevelChecker(org.ssonet.net.SSONETContext context,
anon.infoservice.InfoService infoService,
anon.AnonServer anonServer)
Creates and initializes a JAPAnonLevelChecker. |
Method Summary | |
void |
run()
This method periodically checks the anonymity level of the AnonServer and sends warning- or abort-messages to the AnonymityListeners registered in the context. |
void |
start(java.net.Socket socket)
Starts the JAPAnonLevelChecker. |
void |
stop()
Stops the JAPAnonLevelChecker. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
boolean debug
boolean running
org.ssonet.net.SSONETContext context
anon.infoservice.InfoService infoService
anon.AnonServer anonServer
java.net.Socket socket
java.lang.Thread checkerThread
int currentState
int currentLevel
Constructor Detail |
public JAPAnonLevelChecker(org.ssonet.net.SSONETContext context, anon.infoservice.InfoService infoService, anon.AnonServer anonServer)
context
- the SSONETContext for the connection, for which the anonLevel is to be checkedinfoService
- the InfoService to ask for the anonLevelanonServer
- the AnonServer, through which the connection goesMethod Detail |
public void run()
run
in interface java.lang.Runnable
public void start(java.net.Socket socket)
socket
- the Socket, which is connected through the AnonServer.public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |