org.productivity.java.syslog4j.server.impl
Class AbstractSyslogServer.Sessions

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.productivity.java.syslog4j.server.impl.AbstractSyslogServer.Sessions
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map
Enclosing class:
AbstractSyslogServer

public static class AbstractSyslogServer.Sessions
extends java.util.HashMap

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
static java.lang.Object syncObject
           
 
Constructor Summary
AbstractSyslogServer.Sessions()
           
 
Method Summary
 void addSession(java.net.Socket socket, SyslogServerEventHandlerIF eventHandler, java.lang.Object session)
           
 void addSocket(java.net.Socket socket)
           
protected  java.util.Map getHandlerMap(java.net.Socket socket)
           
 java.lang.Object getSession(java.net.Socket socket, SyslogServerEventHandlerIF eventHandler)
           
 java.util.Iterator getSockets()
           
 void removeSocket(java.net.Socket socket)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

syncObject

public static final java.lang.Object syncObject
Constructor Detail

AbstractSyslogServer.Sessions

public AbstractSyslogServer.Sessions()
Method Detail

addSocket

public void addSocket(java.net.Socket socket)

getSockets

public java.util.Iterator getSockets()

addSession

public void addSession(java.net.Socket socket,
                       SyslogServerEventHandlerIF eventHandler,
                       java.lang.Object session)

removeSocket

public void removeSocket(java.net.Socket socket)

getHandlerMap

protected java.util.Map getHandlerMap(java.net.Socket socket)

getSession

public java.lang.Object getSession(java.net.Socket socket,
                                   SyslogServerEventHandlerIF eventHandler)