|
CryptoPro xjsse4 support moulde. Public API. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.net.ServerSocketFactory
This class creates server sockets. It may be subclassed by other factories, which create particular types of server sockets. This provides a general framework for the addition of public socket-level functionality. It is the server side analogue of a socket factory, and similarly provides a way to capture a variety of policies related to the sockets being constructed.
Like socket factories, server Socket factory instances have methods used to create sockets. There is also an environment specific default server socket factory; frameworks will often use their own customized factory.
SocketFactory
Method Summary | |
java.net.ServerSocket |
createServerSocket()
Returns an unbound server socket. |
abstract java.net.ServerSocket |
createServerSocket(int port)
Returns a server socket bound to the specified port. |
abstract java.net.ServerSocket |
createServerSocket(int port,
int backlog)
Returns a server socket bound to the specified port, and uses the specified connection backlog. |
abstract java.net.ServerSocket |
createServerSocket(int port,
int backlog,
java.net.InetAddress ifAddress)
Returns a server socket bound to the specified port, with a specified listen backlog and local IP. |
static ServerSocketFactory |
getDefault()
Returns a copy of the environment's default socket factory. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ServerSocketFactory getDefault()
ServerSocketFactory
public java.net.ServerSocket createServerSocket() throws java.io.IOException
java.io.IOException
- if the socket cannot be createdServerSocket.bind(java.net.SocketAddress)
,
ServerSocket.bind(java.net.SocketAddress, int)
,
ServerSocket.ServerSocket()
public abstract java.net.ServerSocket createServerSocket(int port) throws java.io.IOException
port
- the port to listen to
ServerSocket
java.io.IOException
- for networking errorsServerSocket.ServerSocket(int)
public abstract java.net.ServerSocket createServerSocket(int port, int backlog) throws java.io.IOException
port
- the port to listen tobacklog
- how many connections are queued
ServerSocket
java.io.IOException
- for networking errorsServerSocket.ServerSocket(int, int)
public abstract java.net.ServerSocket createServerSocket(int port, int backlog, java.net.InetAddress ifAddress) throws java.io.IOException
ServerSocket
that will only accept
connect requests to one
of its addresses. The socket is configured
with the socket options (such as accept timeout) given to this factory.
port
- the port to listen tobacklog
- how many connections are queuedifAddress
- the network interface address to use
ServerSocket
java.io.IOException
- for networking errorsServerSocket.ServerSocket(int, int, java.net.InetAddress)
|
Copyright Crypto-Pro. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |