|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--idman.mngt.Worker
Vermittler für den Aufbau und Betrieb einer Verbindung.
Field Summary | |
protected idman.mngt.Context |
context
|
static boolean |
debug
Debugflag. |
protected idman.mngt.RemoteSocketFactory |
factory
|
protected java.lang.Thread |
fromremote
|
protected int |
localPort
|
protected java.net.Socket |
localSock
|
protected java.net.Socket |
remoteSock
|
protected java.lang.Thread |
runner
|
protected java.net.ServerSocket |
serv
|
protected boolean |
stop
|
protected java.lang.Thread |
toremote
|
Fields inherited from interface org.ssonet.net.ConnectionListener |
FINISHED_STATE, INIT_STATE, MECHANISMS_NEGOTIATION, NOT_STARTED_STATE, RUNNING_STATE, SECURITY_GOAL_NEGOTIATION |
Constructor Summary | |
Worker(idman.mngt.RemoteSocketFactory factory,
idman.mngt.Context context)
Konstruktor. |
Method Summary | |
void |
connectionStateChanged(org.ssonet.net.SSONETContext context,
int currentState)
|
void |
contextChanged(org.ssonet.net.SSONETContext c)
|
protected java.net.Socket |
createSocket(java.net.InetAddress where,
int port)
Erzeugt einen SSONETClientSocket. |
int |
getLocalPort()
Liefert den Port auf den der Worker eine Verbindung annimmt. |
void |
replaceContext(org.ssonet.net.SSONETContext o,
org.ssonet.net.SSONETContext n)
|
void |
start()
Startet die Bearbeitung. |
void |
stop()
Stoppt die Bearbeitung. |
void |
waitRunning(org.ssonet.net.SSONETContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
run |
Methods inherited from interface org.ssonet.net.ConnectionListener |
decideSecurityGoal, negotiationRequestReceived |
Field Detail |
public static boolean debug
protected java.net.Socket remoteSock
protected int localPort
protected java.net.Socket localSock
protected java.net.ServerSocket serv
protected idman.mngt.RemoteSocketFactory factory
protected idman.mngt.Context context
protected java.lang.Thread runner
protected java.lang.Thread fromremote
protected java.lang.Thread toremote
protected boolean stop
Constructor Detail |
public Worker(idman.mngt.RemoteSocketFactory factory, idman.mngt.Context context)
factory
- Fabrik um mit SSL geschützte oder normale Sockets
verwenden zu können.context
- Verbindungsdaten.Method Detail |
public void connectionStateChanged(org.ssonet.net.SSONETContext context, int currentState)
connectionStateChanged
in interface org.ssonet.net.ConnectionListener
public void waitRunning(org.ssonet.net.SSONETContext context)
public void contextChanged(org.ssonet.net.SSONETContext c)
contextChanged
in interface org.ssonet.net.SSONETContextListener
public void replaceContext(org.ssonet.net.SSONETContext o, org.ssonet.net.SSONETContext n)
replaceContext
in interface org.ssonet.net.SSONETContextListener
public int getLocalPort() throws java.net.UnknownHostException, java.net.SocketException, java.io.IOException
java.net.UnknownHostException
java.net.SocketException
java.io.IOException
public void start()
public void stop()
protected java.net.Socket createSocket(java.net.InetAddress where, int port) throws java.net.SocketException, java.io.IOException
where
- Zieladresse der Verbindung.port
- Zielport der Verbindung.
java.net.SocketException
- Bei Fehler mit dem Netzwerk.
java.io.IOException
- Bei Fehlern mit der Pufferung.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |