| java.lang.Object org.hsqldb.HsqlSocketFactory
All known Subclasses: org.hsqldb.HsqlSocketFactorySecure,
HsqlSocketFactory | public class HsqlSocketFactory (Code) | | Base class for producing the Socket objects used by HSQLDB.
author: unsaved@users author: boucherb@users version: 1.7.2 since: 1.7.2 |
HsqlSocketFactory | protected HsqlSocketFactory() throws Exception(Code) | | External construction disabled. New factory instances are retreived
through the newHsqlSocketFactory method instead.
|
configureSocket | public void configureSocket(Socket socket)(Code) | | |
createServerSocket | public ServerSocket createServerSocket(int port) throws Exception(Code) | | Returns a server socket bound to the specified port.
The socket is configured with the socket options
given to this factory.
the ServerSocket Parameters: port - the port to which to bind the ServerSocket throws: Exception - if a network error occurs |
createServerSocket | public ServerSocket createServerSocket(int port, String address) throws Exception(Code) | | Returns a server socket bound to the specified port.
The socket is configured with the socket options
given to this factory.
the ServerSocket Parameters: port - the port to which to bind the ServerSocket throws: Exception - if a network error occurs |
createSocket | public Socket createSocket(String host, int port) throws Exception(Code) | | Creates a socket and connects it to the specified remote host at the
specified remote port. This socket is configured using the socket options
established for this factory.
the socket Parameters: host - the server host Parameters: port - the server port throws: Exception - if a network error occurs |
getInstance | public static HsqlSocketFactory getInstance(boolean tls) throws Exception(Code) | | Retrieves an HsqlSocketFactory whose subclass and attributes are
determined by the specified argument, tls.
Parameters: tls - whether to retrieve a factory producing SSL sockets throws: Exception - if the new factory cannot be constructed or isof the wrong type a new factory |
isSecure | public boolean isSecure()(Code) | | Retrieves whether this factory produces secure sockets.
true if this factory produces secure sockets |
|
|