org.springframework.integration.ip
Class AbstractInternetProtocolSendingMessageHandler
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.ip.AbstractInternetProtocolSendingMessageHandler
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered, NamedComponent, Orderable, MessageHandler, TrackableComponent, CommonSocketOptions
- Direct Known Subclasses:
- UnicastSendingMessageHandler
public abstract class AbstractInternetProtocolSendingMessageHandler
- extends AbstractMessageHandler
- implements CommonSocketOptions
Base class for all TCP/UDP MessageHandlers.
- Since:
- 2.0
- Author:
- Gary Russell
Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, onInit, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractInternetProtocolSendingMessageHandler
public AbstractInternetProtocolSendingMessageHandler(java.lang.String host,
int port)
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)
getHost
public java.lang.String getHost()
- Returns:
- the host
getPort
public int getPort()
- Returns:
- the port
getDestinationAddress
public java.net.SocketAddress getDestinationAddress()
- Returns:
- the destinationAddress
getSoTimeout
public int getSoTimeout()
- Returns:
- the soTimeout
getSoSendBufferSize
public int getSoSendBufferSize()
- Returns:
- the soSendBufferSize