Spring Integration

org.springframework.integration.ip
Class AbstractInternetProtocolSendingMessageHandler

java.lang.Object
  extended by org.springframework.integration.ip.AbstractInternetProtocolSendingMessageHandler
All Implemented Interfaces:
MessageHandler, CommonSocketOptions
Direct Known Subclasses:
AbstractTcpSendingMessageHandler, UnicastSendingMessageHandler

public abstract class AbstractInternetProtocolSendingMessageHandler
extends Object
implements MessageHandler, CommonSocketOptions

Base class for all TCP/UDP MessageHandlers.

Since:
2.0
Author:
Gary Russell

Field Summary
protected  SocketAddress destinationAddress
           
protected  String host
           
protected  org.apache.commons.logging.Log logger
           
protected  int port
           
protected  int soSendBufferSize
           
protected  int soTimeout
           
 
Constructor Summary
AbstractInternetProtocolSendingMessageHandler(String host, int port)
           
 
Method Summary
 int getPort()
           
 void setSoReceiveBufferSize(int size)
           
 void setSoSendBufferSize(int size)
           
 void setSoTimeout(int timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.integration.core.MessageHandler
handleMessage
 
Methods inherited from interface org.springframework.integration.ip.CommonSocketOptions
setLocalAddress
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger

destinationAddress

protected final SocketAddress destinationAddress

host

protected final String host

port

protected final int port

soSendBufferSize

protected volatile int soSendBufferSize

soTimeout

protected volatile int soTimeout
Constructor Detail

AbstractInternetProtocolSendingMessageHandler

public AbstractInternetProtocolSendingMessageHandler(String host,
                                                     int port)
Method Detail

setSoTimeout

public void setSoTimeout(int timeout)
Specified by:
setSoTimeout in interface CommonSocketOptions
Parameters:
timeout -
See Also:
Socket.setSoTimeout(int), DatagramSocket.setSoTimeout(int)

setSoReceiveBufferSize

public void setSoReceiveBufferSize(int size)
Specified by:
setSoReceiveBufferSize in interface CommonSocketOptions
Parameters:
size -
See Also:
Socket.setReceiveBufferSize(int), DatagramSocket.setReceiveBufferSize(int)

setSoSendBufferSize

public void setSoSendBufferSize(int size)
Specified by:
setSoSendBufferSize in interface CommonSocketOptions
Parameters:
size -
See Also:
Socket.setSendBufferSize(int), DatagramSocket.setSendBufferSize(int)

getPort

public int getPort()
Returns:
the port

Spring Integration

Copyright © 2010. All Rights Reserved.