Package org.eclipse.ecf.provider.generic
Class SOContainerGroup
- java.lang.Object
- 
- org.eclipse.ecf.provider.generic.SOContainerGroup
 
- 
- All Implemented Interfaces:
- ISocketAcceptHandler
 - Direct Known Subclasses:
- SSLServerSOContainerGroup,- TCPServerSOContainerGroup
 
 public class SOContainerGroup extends Object implements ISocketAcceptHandler 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringINVALID_CONNECTprotected Mapmap
 - 
Constructor SummaryConstructors Constructor Description SOContainerGroup(String name)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringadd(String key, SOContainer aSpace)booleancontains(String key)protected ObjectInputStreamcreateObjectInputStream(Socket aSocket)protected ObjectOutputStreamcreateObjectOutputStream(Socket aSocket)Iteratorelements()SOContainerget(String key)StringgetName()voidhandleAccept(Socket aSocket)protected ConnectRequestMessagereadConnectRequestMessage(ObjectInputStream ins)SOContainerremove(String key)
 
- 
- 
- 
Field Detail- 
INVALID_CONNECTpublic static final String INVALID_CONNECT - Since:
- 4.7
- See Also:
- Constant Field Values
 
 - 
mapprotected Map map 
 
- 
 - 
Constructor Detail- 
SOContainerGrouppublic SOContainerGroup(String name) 
 
- 
 - 
Method Detail- 
addpublic String add(String key, SOContainer aSpace) 
 - 
getpublic SOContainer get(String key) 
 - 
removepublic SOContainer remove(String key) 
 - 
containspublic boolean contains(String key) 
 - 
getNamepublic String getName() 
 - 
elementspublic Iterator elements() 
 - 
createObjectOutputStreamprotected ObjectOutputStream createObjectOutputStream(Socket aSocket) throws IOException - Parameters:
- aSocket- socket
- Returns:
- ObjectOutputStream new object output stream for socket
- Throws:
- IOException- if object output stream cannot be created
- Since:
- 4.7
 
 - 
createObjectInputStreamprotected ObjectInputStream createObjectInputStream(Socket aSocket) throws IOException - Parameters:
- aSocket- socket
- Returns:
- ObjectInputStream new object input stream for socket
- Throws:
- IOException- if object input stream cannot be created
- Since:
- 4.7
 
 - 
readConnectRequestMessageprotected ConnectRequestMessage readConnectRequestMessage(ObjectInputStream ins) throws IOException, ClassNotFoundException - Parameters:
- ins- object input stream. Will not be- null
- Returns:
- ConnectRequestMessage connect request message read from object input stream
- Throws:
- IOException- if object cannot be read from stream
- ClassNotFoundException- if object cannot be read from stream
- Since:
- 4.7
 
 - 
handleAcceptpublic void handleAccept(Socket aSocket) throws Exception - Specified by:
- handleAcceptin interface- ISocketAcceptHandler
- Parameters:
- aSocket- socket
- Throws:
- Exception
- Since:
- 4.7
 
 
- 
 
-