public abstract class AbstractServerConnectionHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected ConnectionInformation |
connectionInformation |
protected IoSession |
ioSession |
protected Messenger |
messenger |
protected PingService |
pingService |
| Constructor and Description |
|---|
AbstractServerConnectionHandler(IoSession ioSession,
ConnectionInformation connectionInformation) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanUp() |
void |
exceptionCaught(java.lang.Throwable cause) |
protected boolean |
getBooleanProperty(java.lang.String propertyName,
boolean defaultValue) |
protected int |
getIntProperty(java.lang.String propertyName,
int defaultValue) |
int |
getMessageTimeout() |
int |
getPingPeriod() |
protected java.util.Map<java.lang.String,java.lang.String> |
getTransportProperties(java.util.Properties props) |
void |
messageReceived(java.lang.Object message) |
void |
messageSent(java.lang.Object message) |
protected void |
modifyFilterChain(IoSession ioSession,
java.util.Map<java.lang.String,java.lang.String> properties) |
protected void |
replySessionCreated(java.util.Properties originalProperties,
Message originalMessage,
java.util.Map<java.lang.String,java.lang.String> sessionProperties) |
protected void |
sendPrivilegeChange(java.util.Set<java.lang.String> privileges) |
void |
sessionClosed() |
protected void |
sessionConfigured(java.util.Map<java.lang.String,java.lang.String> properties) |
void |
sessionCreated() |
void |
sessionIdle(IdleStatus status) |
void |
sessionOpened() |
protected void |
startSession() |
protected IoSession ioSession
protected final Messenger messenger
protected final PingService pingService
protected final ConnectionInformation connectionInformation
public AbstractServerConnectionHandler(IoSession ioSession,
ConnectionInformation connectionInformation)
protected void sessionConfigured(java.util.Map<java.lang.String,java.lang.String> properties)
protected void sendPrivilegeChange(java.util.Set<java.lang.String> privileges)
protected void modifyFilterChain(IoSession ioSession,
java.util.Map<java.lang.String,java.lang.String> properties)
protected java.util.Map<java.lang.String,java.lang.String> getTransportProperties(java.util.Properties props)
protected void replySessionCreated(java.util.Properties originalProperties,
Message originalMessage,
java.util.Map<java.lang.String,java.lang.String> sessionProperties)
public void exceptionCaught(java.lang.Throwable cause)
throws java.lang.Exception
java.lang.Exceptionpublic void messageReceived(java.lang.Object message)
throws java.lang.Exception
java.lang.Exceptionprotected void startSession()
public void messageSent(java.lang.Object message)
throws java.lang.Exception
java.lang.Exceptionpublic void sessionClosed()
throws java.lang.Exception
java.lang.Exceptionprotected void cleanUp()
public void sessionCreated()
throws java.lang.Exception
java.lang.Exceptionpublic void sessionIdle(IdleStatus status)
throws java.lang.Exception
java.lang.Exceptionpublic void sessionOpened()
throws java.lang.Exception
java.lang.Exceptionpublic int getPingPeriod()
public int getMessageTimeout()
protected boolean getBooleanProperty(java.lang.String propertyName,
boolean defaultValue)
protected int getIntProperty(java.lang.String propertyName,
int defaultValue)
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0