SOMA.security.net.ssl
Class SSLConnectionServer
java.lang.Object
SOMA.network.connection.ConnectionServer
SOMA.security.net.ssl.SSLConnectionServer
- All Implemented Interfaces:
- Daemon, java.lang.Runnable, SSLControlCaller
- public class SSLConnectionServer
- extends ConnectionServer
- implements SSLControlCaller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
infrastructure
Infrastructure infrastructure
profile
ProfileManager profile
controlCaller
int controlCaller
myServerDaemon
java.lang.Thread myServerDaemon
myServerSocket
java.net.ServerSocket myServerSocket
myConnectionFactory
ConnectionFactory myConnectionFactory
status
java.lang.Object status
ErrorDescription
java.lang.String ErrorDescription
port
int port
backlog
int backlog
SSLConnectionServer
public SSLConnectionServer(int port,
int backlog,
ConnectionFactory myConnectionFactory)
SSLConnectionServer
public SSLConnectionServer(int port,
int backlog,
ConnectionFactory myConnectionFactory,
ProfileManager profile,
int controlCaller)
setInfrastructure
public void setInfrastructure(Infrastructure infrastructure)
setProfile
public void setProfile(ProfileManager profile)
setControlCaller
public void setControlCaller(int controlCaller)
throws SSLException
- Throws:
SSLException
getControlCaller
public int getControlCaller()
- Specified by:
getControlCaller
in interface SSLControlCaller
toString
public java.lang.String toString()
- Restituisce lo stato.
Metodo ereditato.
- Overrides:
toString
in class ConnectionServer
start
public void start()
throws java.io.IOException,
ConnectionServer.ConnectionServerException
- Avvia il server.
- Specified by:
start
in interface Daemon
- Overrides:
start
in class ConnectionServer
- Throws:
java.io.IOException
ConnectionServer.ConnectionServerException
stop
public void stop()
throws java.io.IOException,
ConnectionServer.ConnectionServerException
- Arresta il server.
Attenzione: questo metodo potrebbe non essere riscritto;
lo si riscrive solo per poter ridefinire l'eccezione
che viene chiamata in caso di stato diverso da OFF.
- Specified by:
stop
in interface Daemon
- Overrides:
stop
in class ConnectionServer
- Throws:
java.io.IOException
ConnectionServer.ConnectionServerException
run
public void run()
- Metodo eseguito dal demone: attende richieste ed attiva connessioni finche' lo stato rimane ON e la ServerSocket attiva.
- Specified by:
run
in interface java.lang.Runnable
- Overrides:
run
in class ConnectionServer
Copyright © 2004 Luca Foschini