|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hsqldb.HsqlSocketFactory
Base class for producing the Socket objects used by HSQLDB.
Constructor Summary | |
protected |
HsqlSocketFactory()
External construction disabled. |
Method Summary | |
void |
configureSocket(Socket socket)
|
ServerSocket |
createServerSocket(int port)
Returns a server socket bound to the specified port. |
ServerSocket |
createServerSocket(int port,
String address)
Returns a server socket bound to the specified port. |
Socket |
createSocket(String host,
int port)
Creates a socket and connects it to the specified remote host at the specified remote port. |
static HsqlSocketFactory |
getInstance(boolean tls)
Retrieves an HsqlSocketFactory whose subclass and attributes are determined by the specified argument, tls. |
boolean |
isSecure()
Retrieves whether this factory produces secure sockets. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected HsqlSocketFactory() throws Exception
Method Detail |
public static HsqlSocketFactory getInstance(boolean tls) throws Exception
tls
- whether to retrieve a factory producing SSL sockets
Exception
- if the new factory cannot be constructed or is
of the wrong typepublic void configureSocket(Socket socket)
public ServerSocket createServerSocket(int port) throws Exception
port
- the port to which to bind the ServerSocket
Exception
- if a network error occurspublic ServerSocket createServerSocket(int port, String address) throws Exception
port
- the port to which to bind the ServerSocket
Exception
- if a network error occurspublic Socket createSocket(String host, int port) throws Exception
host
- the server hostport
- the server port
Exception
- if a network error occurspublic boolean isSecure()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |