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