public abstract class ManagedSocketFactory extends SocketFactory
ServerSocketFactory implementation creating sockets, which automatically register
and unregister itself at the SocketBindingManager when bound or closed.| Constructor and Description |
|---|
ManagedSocketFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract Socket |
createSocket(String name)
Create a socket.
|
abstract Socket |
createSocket(String name,
InetAddress host,
int port)
Create a socket.
|
abstract Socket |
createSocket(String name,
InetAddress address,
int port,
InetAddress localAddress,
int localPort)
Create a socket.
|
abstract Socket |
createSocket(String name,
String host,
int port)
Create a socket.
|
abstract Socket |
createSocket(String name,
String host,
int port,
InetAddress localHost,
int localPort)
Create a socket.
|
createSocket, createSocket, createSocket, createSocket, createSocket, getDefaultpublic abstract Socket createSocket(String name) throws IOException
name - the socket nameIOExceptionSocketFactory#createSocket()}public abstract Socket createSocket(String name, String host, int port) throws IOException
name - the socket-binding name.host - the hostport - the portIOExceptionUnknownHostExceptionSocketFactory#createSocket(String, int)}public abstract Socket createSocket(String name, InetAddress host, int port) throws IOException
name - the socket-binding name.host - the hostport - the portIOExceptionSocketFactory#createSocket(InetAddress, int)}public abstract Socket createSocket(String name, String host, int port, InetAddress localHost, int localPort) throws IOException
name - the socket-binding name.host - the hostport - the portlocalHost - the local hostlocalPort - the local portIOExceptionUnknownHostExceptionSocketFactory#createSocket(String, int, java.net.InetAddress, int)}public abstract Socket createSocket(String name, InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
name - the socket-binding name.address - the addressport - the portlocalAddress - the local addresslocalPort - the local portIOExceptionSocketFactory#createSocket(java.net.InetAddress, int, java.net.InetAddress, int)}Copyright © 2014 JBoss by Red Hat. All rights reserved.