|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SocketReader
General interface for assembling message data from a TCP/IP Socket.
Implementations for Socket
and SocketChannel
are provided.
Field Summary | |
---|---|
static int |
MESSAGE_COMPLETE
|
static int |
MESSAGE_INCOMPLETE
|
static int |
SOCKET_CLOSED
|
Method Summary | |
---|---|
int |
assembleData()
Reads the data the socket and assembles packets of data into a complete message, depending on the format of that data. |
InetAddress |
getAddress()
Returns the InetAddress of the underlying socket. |
Object |
getAssembledData()
Retrieves the assembled tcp data or null if the data is not yet assembled. |
Socket |
getSocket()
|
Field Detail |
---|
static final int SOCKET_CLOSED
static final int MESSAGE_INCOMPLETE
static final int MESSAGE_COMPLETE
Method Detail |
---|
int assembleData() throws IOException
IOException
Object getAssembledData()
InetAddress getAddress()
Socket getSocket()
|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |