Spring Integration

org.springframework.integration.ip.tcp.connection
Class DefaultTcpNioSSLConnectionSupport

java.lang.Object
  extended by org.springframework.integration.ip.tcp.connection.DefaultTcpNioSSLConnectionSupport
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, TcpNioConnectionSupport

public class DefaultTcpNioSSLConnectionSupport
extends java.lang.Object
implements TcpNioConnectionSupport, org.springframework.beans.factory.InitializingBean

Implementation of TcpNioConnectionSupport for SSL NIO connections.

Since:
2.2
Author:
Gary Russell

Constructor Summary
DefaultTcpNioSSLConnectionSupport(TcpSSLContextSupport sslContextSupport)
           
 
Method Summary
 void afterPropertiesSet()
           
 TcpNioConnection createNewConnection(java.nio.channels.SocketChannel socketChannel, boolean server, boolean lookupHost, org.springframework.context.ApplicationEventPublisher applicationEventPublisher, java.lang.String connectionFactoryName)
          Creates a TcpNioSSLConnection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTcpNioSSLConnectionSupport

public DefaultTcpNioSSLConnectionSupport(TcpSSLContextSupport sslContextSupport)
Method Detail

createNewConnection

public TcpNioConnection createNewConnection(java.nio.channels.SocketChannel socketChannel,
                                            boolean server,
                                            boolean lookupHost,
                                            org.springframework.context.ApplicationEventPublisher applicationEventPublisher,
                                            java.lang.String connectionFactoryName)
                                     throws java.lang.Exception
Creates a TcpNioSSLConnection.

Specified by:
createNewConnection in interface TcpNioConnectionSupport
Parameters:
socketChannel - the SocketChannel.
server - true if this connection is a server connection.
lookupHost - true if hostname lookup should be performed, otherwise the connection will be identified using the ip address.
applicationEventPublisher - the publisher to which OPEN, CLOSE and EXCEPTION events will be sent; may be null if event publishing is not required.
connectionFactoryName - the name of the connection factory creating this connection; used during event publishing, may be null, in which case "unknown" will be used.
Returns:
the TcpNioConnection
Throws:
java.lang.Exception

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

Spring Integration