org.eclipse.ecf.server.generic
Class SSLAbstractGenericServer

java.lang.Object
  extended by org.eclipse.ecf.server.generic.SSLAbstractGenericServer
Direct Known Subclasses:
SSLSimpleGenericServer

public abstract class SSLAbstractGenericServer
extends java.lang.Object

Since:
6.0

Field Summary
protected  SSLServerSOContainerGroup serverGroup
           
 
Constructor Summary
SSLAbstractGenericServer(java.lang.String host, int port)
           
 
Method Summary
protected  java.security.PermissionCollection checkConnect(java.lang.Object address, ID fromID, ID targetID, java.lang.String targetGroup, java.lang.Object connectData)
           
protected  void createAndInitializeServer(java.lang.String path)
           
protected  void createAndInitializeServer(java.lang.String path, int keepAlive)
           
protected  IConnectHandlerPolicy createConnectHandlerPolicy(SSLGenericServerContainer s, java.lang.String path)
           
protected  SOContainerConfig createServerConfig(java.lang.String path)
           
protected  ID createServerIDFromPath(java.lang.String path)
           
 SSLGenericServerContainer getFirstServerContainer()
           
protected  java.lang.String getHost()
           
protected  int getPort()
           
 SSLGenericServerContainer getServerContainer(int index)
           
 java.util.List getServerContainers()
           
protected abstract  void handleDisconnect(ID targetID)
           
protected abstract  void handleEject(ID targetID)
           
protected  void putOnTheAir()
           
 void start(java.lang.String path, int keepAlive)
           
 void stop()
           
protected  void takeOffTheAir()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverGroup

protected SSLServerSOContainerGroup serverGroup
Constructor Detail

SSLAbstractGenericServer

public SSLAbstractGenericServer(java.lang.String host,
                                int port)
Method Detail

getFirstServerContainer

public SSLGenericServerContainer getFirstServerContainer()
Since:
2.0

getServerContainers

public java.util.List getServerContainers()

getServerContainer

public SSLGenericServerContainer getServerContainer(int index)
Since:
2.0

putOnTheAir

protected void putOnTheAir()
                    throws java.io.IOException
Throws:
java.io.IOException

takeOffTheAir

protected void takeOffTheAir()

start

public void start(java.lang.String path,
                  int keepAlive)
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop()

createAndInitializeServer

protected void createAndInitializeServer(java.lang.String path)
                                  throws IDCreateException
Throws:
IDCreateException

createAndInitializeServer

protected void createAndInitializeServer(java.lang.String path,
                                         int keepAlive)
                                  throws IDCreateException
Throws:
IDCreateException

checkConnect

protected java.security.PermissionCollection checkConnect(java.lang.Object address,
                                                          ID fromID,
                                                          ID targetID,
                                                          java.lang.String targetGroup,
                                                          java.lang.Object connectData)
                                                   throws java.lang.Exception
Throws:
java.lang.Exception

handleDisconnect

protected abstract void handleDisconnect(ID targetID)

handleEject

protected abstract void handleEject(ID targetID)

createConnectHandlerPolicy

protected IConnectHandlerPolicy createConnectHandlerPolicy(SSLGenericServerContainer s,
                                                           java.lang.String path)
Since:
2.0

createServerIDFromPath

protected ID createServerIDFromPath(java.lang.String path)
                             throws IDCreateException
Throws:
IDCreateException

createServerConfig

protected SOContainerConfig createServerConfig(java.lang.String path)
                                        throws IDCreateException
Throws:
IDCreateException

getHost

protected java.lang.String getHost()

getPort

protected int getPort()