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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(String key, SOContainer aSpace) boolean
protected ObjectInputStream
createObjectInputStream
(Socket aSocket) protected ObjectOutputStream
createObjectOutputStream
(Socket aSocket) elements()
getName()
void
handleAccept
(Socket aSocket) protected ConnectRequestMessage
-
Field Details
-
INVALID_CONNECT
- Since:
- 4.7
- See Also:
-
map
-
-
Constructor Details
-
SOContainerGroup
-
-
Method Details
-
add
-
get
-
remove
-
contains
-
getName
-
elements
-
createObjectOutputStream
- Parameters:
aSocket
- socket- Returns:
- ObjectOutputStream new object output stream for socket
- Throws:
IOException
- if object output stream cannot be created- Since:
- 4.7
-
createObjectInputStream
- Parameters:
aSocket
- socket- Returns:
- ObjectInputStream new object input stream for socket
- Throws:
IOException
- if object input stream cannot be created- Since:
- 4.7
-
readConnectRequestMessage
protected ConnectRequestMessage readConnectRequestMessage(ObjectInputStream ins) throws IOException, ClassNotFoundException - Parameters:
ins
- object input stream. Will not benull
- Returns:
- ConnectRequestMessage connect request message read from object input stream
- Throws:
IOException
- if object cannot be read from streamClassNotFoundException
- if object cannot be read from stream- Since:
- 4.7
-
handleAccept
- Specified by:
handleAccept
in interfaceISocketAcceptHandler
- Parameters:
aSocket
- socket- Throws:
Exception
- Since:
- 4.7
-