org.mule.transport.tcp
Class TcpServerSocketFactory

java.lang.Object
  extended by org.mule.transport.tcp.TcpServerSocketFactory
All Implemented Interfaces:
SimpleServerSocketFactory
Direct Known Subclasses:
SslServerSocketFactory

public class TcpServerSocketFactory
extends Object
implements SimpleServerSocketFactory


Field Summary
protected  Log logger
           
 
Constructor Summary
TcpServerSocketFactory()
           
 
Method Summary
protected  ServerSocket configure(ServerSocket socket, Boolean reuse, InetSocketAddress address, int backlog)
           
 ServerSocket createServerSocket(InetAddress address, int port, int backlog, Boolean reuse)
           
 ServerSocket createServerSocket(int port, int backlog, Boolean reuse)
           
 ServerSocket createServerSocket(URI uri, int backlog, Boolean reuse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Log logger
Constructor Detail

TcpServerSocketFactory

public TcpServerSocketFactory()
Method Detail

createServerSocket

public ServerSocket createServerSocket(URI uri,
                                       int backlog,
                                       Boolean reuse)
                                throws IOException
Specified by:
createServerSocket in interface SimpleServerSocketFactory
Parameters:
uri - The address and port to connect to
backlog - The backlog (or Connector.INT_VALUE_NOT_SET)
reuse - Whether to reuse addresses (null for default)
Returns:
A new, bound server socket
Throws:
IOException

createServerSocket

public ServerSocket createServerSocket(InetAddress address,
                                       int port,
                                       int backlog,
                                       Boolean reuse)
                                throws IOException
Specified by:
createServerSocket in interface SimpleServerSocketFactory
Throws:
IOException

createServerSocket

public ServerSocket createServerSocket(int port,
                                       int backlog,
                                       Boolean reuse)
                                throws IOException
Specified by:
createServerSocket in interface SimpleServerSocketFactory
Throws:
IOException

configure

protected ServerSocket configure(ServerSocket socket,
                                 Boolean reuse,
                                 InetSocketAddress address,
                                 int backlog)
                          throws IOException
Throws:
IOException


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.