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, getDefault
public abstract Socket createSocket(String name) throws IOException
name
- the socket nameIOException
SocketFactory#createSocket()}
public abstract Socket createSocket(String name, String host, int port) throws IOException
name
- the socket-binding name.host
- the hostport
- the portIOException
UnknownHostException
SocketFactory#createSocket(String, int)}
public abstract Socket createSocket(String name, InetAddress host, int port) throws IOException
name
- the socket-binding name.host
- the hostport
- the portIOException
SocketFactory#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 portIOException
UnknownHostException
SocketFactory#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 portIOException
SocketFactory#createSocket(java.net.InetAddress, int, java.net.InetAddress, int)}
Copyright © 2023 JBoss by Red Hat. All rights reserved.