public class SOContainerGroup extends java.lang.Object implements ISocketAcceptHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INVALID_CONNECT |
protected java.util.Map |
map |
Constructor and Description |
---|
SOContainerGroup(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
add(java.lang.String key,
SOContainer aSpace) |
boolean |
contains(java.lang.String key) |
protected java.io.ObjectInputStream |
createObjectInputStream(java.net.Socket aSocket) |
protected java.io.ObjectOutputStream |
createObjectOutputStream(java.net.Socket aSocket) |
java.util.Iterator |
elements() |
SOContainer |
get(java.lang.String key) |
java.lang.String |
getName() |
void |
handleAccept(java.net.Socket aSocket) |
protected ConnectRequestMessage |
readConnectRequestMessage(java.io.ObjectInputStream ins) |
SOContainer |
remove(java.lang.String key) |
public static final java.lang.String INVALID_CONNECT
protected java.util.Map map
public java.lang.String add(java.lang.String key, SOContainer aSpace)
public SOContainer get(java.lang.String key)
public SOContainer remove(java.lang.String key)
public boolean contains(java.lang.String key)
public java.lang.String getName()
public java.util.Iterator elements()
protected java.io.ObjectOutputStream createObjectOutputStream(java.net.Socket aSocket) throws java.io.IOException
aSocket
- socketjava.io.IOException
- if object output stream cannot be createdprotected java.io.ObjectInputStream createObjectInputStream(java.net.Socket aSocket) throws java.io.IOException
aSocket
- socketjava.io.IOException
- if object input stream cannot be createdprotected ConnectRequestMessage readConnectRequestMessage(java.io.ObjectInputStream ins) throws java.io.IOException, java.lang.ClassNotFoundException
ins
- object input stream. Will not be null
java.io.IOException
- if object cannot be read from streamjava.lang.ClassNotFoundException
- if object cannot be read from streampublic void handleAccept(java.net.Socket aSocket) throws java.lang.Exception
handleAccept
in interface ISocketAcceptHandler
aSocket
- socketjava.lang.Exception