Known Direct Subclasses
|
Class Overview
This abstract class defines methods to create server sockets. It can be
subclassed to create specific server socket types.
Summary
Public Methods |
abstract
ServerSocket
|
createServerSocket(int port, int backlog, InetAddress iAddress)
Creates a new server socket which is bound to the given address on the
specified port and configures its maximum of queued connections.
|
abstract
ServerSocket
|
createServerSocket(int port, int backlog)
Creates a new server socket which is bound to the given port and
configures its maximum of queued connections.
|
abstract
ServerSocket
|
createServerSocket(int port)
Creates a new server socket which is bound to the given port.
|
ServerSocket
|
createServerSocket()
Creates a new server socket which is not bound to any local address.
|
synchronized
static
ServerSocketFactory
|
getDefault()
Gets the default server socket factory of the system which can be used to
create new server sockets without creating a subclass of this factory.
|
[Expand]
Inherited Methods |
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class which represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
|
Protected Constructors
protected
ServerSocketFactory
()
Creates a new ServerSocketFactory
instance.
Public Methods
public
abstract
ServerSocket
createServerSocket
(int port, int backlog, InetAddress iAddress)
Creates a new server socket which is bound to the given address on the
specified port and configures its maximum of queued connections.
Parameters
port
| the port on which the created socket has to listen. |
backlog
| the maximum of queued connections. |
iAddress
| the address of the network interface which is used by the
created socket. |
Returns
- the created bound server socket.
Throws
IOException
| if an error occurs while creating a new server socket.
|
public
abstract
ServerSocket
createServerSocket
(int port, int backlog)
Creates a new server socket which is bound to the given port and
configures its maximum of queued connections.
Parameters
port
| the port on which the created socket has to listen. |
backlog
| the maximum of queued connections. |
Returns
- the created bound server socket.
Throws
IOException
| if an error occurs while creating a new server socket.
|
public
abstract
ServerSocket
createServerSocket
(int port)
Creates a new server socket which is bound to the given port.
Parameters
port
| the port on which the created socket has to listen. |
Returns
- the created bound server socket.
Throws
IOException
| if an error occurs while creating a new server socket.
|
public
ServerSocket
createServerSocket
()
Creates a new server socket which is not bound to any local address. This
method has to be overridden by a subclass otherwise a SocketException
is thrown.
Returns
- the created unbound server socket.
Throws
IOException
| if an error occurs while creating a new server socket.
|
public
static
synchronized
ServerSocketFactory
getDefault
()
Gets the default server socket factory of the system which can be used to
create new server sockets without creating a subclass of this factory.
Returns
- the system default server socket factory.