public class Server<SessionClazz> extends StatelessServer
DEFAULT_HOST, DEFAULT_PORT| Constructor and Description |
|---|
Server()
Creates a new server node with the default server host name and
port, and no authenticator or session manager.
|
Server(Authenticator authenticator,
SessionManager<SessionClazz> sessionManager)
Creates a new server node with the default server host name and
port, and the given authenticator and session manager.
|
Server(String host,
int port,
Authenticator authenticator,
SessionManager<SessionClazz> sessionManager)
Creates a new server node with the given server host name,
port, authenticator, and session manager.
|
Server(String inHost,
int inPort,
Authenticator inAuthenticator,
SessionManager<SessionClazz> inSessionManager,
ContextClassProvider inContextClassProvider)
Create a new Server instance.
|
| Modifier and Type | Method and Description |
|---|---|
Authenticator |
getAuthenticator()
Returns the receiver's authenticator.
|
SessionManager<SessionClazz> |
getSessionManager()
Returns the receiver's session manager.
|
void |
stop()
Shuts down the receiver.
|
publishpublic Server(String host, int port, Authenticator authenticator, SessionManager<SessionClazz> sessionManager)
host - The host name.port - The port.authenticator - The authenticator, which may be null.sessionManager - The session manager, which may be null.public Server(String inHost, int inPort, Authenticator inAuthenticator, SessionManager<SessionClazz> inSessionManager, ContextClassProvider inContextClassProvider)
inHost - a String valueinPort - an int valueinAuthenticator - an Authenticator value or nullinSessionManager - a SessionManager<T> value or nullinContextClassProvider - a ContextClassProvider value or nullpublic Server(Authenticator authenticator, SessionManager<SessionClazz> sessionManager)
authenticator - The authenticator, which may be null.sessionManager - The session manager, which may be null.public Server()
public Authenticator getAuthenticator()
public SessionManager<SessionClazz> getSessionManager()
public void stop()
StatelessServerstop in class StatelessServerCopyright © 2015. All Rights Reserved.