public abstract class ServiceServerConnection<T extends Session,S extends Service<T>> extends ServerConnection
| Modifier and Type | Field and Description |
|---|---|
protected S |
service |
protected T |
session |
statistics| Constructor and Description |
|---|
ServiceServerConnection(org.apache.mina.core.session.IoSession session,
S service) |
| Modifier and Type | Method and Description |
|---|---|
protected CallbackHandler |
createCallbackHandler(Long callbackHandlerId) |
protected NotifyFuture<T> |
createSession(Properties properties,
CallbackHandler callbackHandler) |
void |
dispose() |
protected void |
failSession(Exception e) |
protected void |
handleCreateSession(CreateSession message) |
protected void |
initializeSession(T session) |
protected SessionPrivilegesChanged |
makePrivilegeChangeMessage(Set<String> privileges) |
void |
messageReceived(Object message) |
protected void |
setSession(Future<T> sessionFuture) |
getSslSession, handleMessageReceived, requestClose, sendMessagepublic ServiceServerConnection(org.apache.mina.core.session.IoSession session,
S service)
public void messageReceived(Object message) throws Exception
messageReceived in class ServerConnectionExceptionprotected void handleCreateSession(CreateSession message)
protected void failSession(Exception e)
protected void setSession(Future<T> sessionFuture) throws Exception
Exceptionprotected void initializeSession(T session)
protected SessionPrivilegesChanged makePrivilegeChangeMessage(Set<String> privileges)
protected NotifyFuture<T> createSession(Properties properties, CallbackHandler callbackHandler)
callbackHandler - public void dispose()
dispose in class ServerConnectionprotected CallbackHandler createCallbackHandler(Long callbackHandlerId)