SOMA.security.net.ssl
Class SSLConnectionServer

java.lang.Object
  extended bySOMA.network.connection.ConnectionServer
      extended bySOMA.security.net.ssl.SSLConnectionServer
All Implemented Interfaces:
Daemon, java.lang.Runnable, SSLControlCaller

public class SSLConnectionServer
extends ConnectionServer
implements SSLControlCaller


Nested Class Summary
 
Nested classes inherited from class SOMA.network.connection.ConnectionServer
ConnectionServer.ConnectionServerException
 
Field Summary
(package private)  int backlog
           
(package private)  int controlCaller
           
(package private)  java.lang.String ErrorDescription
           
(package private)  Infrastructure infrastructure
           
(package private)  ConnectionFactory myConnectionFactory
           
(package private)  java.lang.Thread myServerDaemon
           
(package private)  java.net.ServerSocket myServerSocket
           
(package private)  int port
           
(package private)  ProfileManager profile
           
(package private)  java.lang.Object status
           
 
Fields inherited from interface SOMA.security.net.ssl.SSLControlCaller
ControlCaller_OFF, ControlCaller_ON
 
Fields inherited from interface SOMA.network.connection.Daemon
ERROR, OFF, ON
 
Constructor Summary
SSLConnectionServer(int port, int backlog, ConnectionFactory myConnectionFactory)
           
SSLConnectionServer(int port, int backlog, ConnectionFactory myConnectionFactory, ProfileManager profile, int controlCaller)
           
 
Method Summary
 int getControlCaller()
           
 void run()
          Metodo eseguito dal demone: attende richieste ed attiva connessioni finche' lo stato rimane ON e la ServerSocket attiva.
 void setControlCaller(int controlCaller)
           
 void setInfrastructure(Infrastructure infrastructure)
           
 void setProfile(ProfileManager profile)
           
 void start()
          Avvia il server.
 void stop()
          Arresta il server.
 java.lang.String toString()
          Restituisce lo stato.
 
Methods inherited from class SOMA.network.connection.ConnectionServer
getStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

SSLConnectionServer

public SSLConnectionServer(int port,
                           int backlog,
                           ConnectionFactory myConnectionFactory)

SSLConnectionServer

public SSLConnectionServer(int port,
                           int backlog,
                           ConnectionFactory myConnectionFactory,
                           ProfileManager profile,
                           int controlCaller)
Method Detail

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