| Modifier and Type | Field and Description |
|---|---|
| private static HsqlSocketFactory | |
| private static HsqlSocketFactory |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public ServerSocket | Returns: the ServerSocketthe port to which to bind the ServerSocket port)Returns a server socket bound to the specified port. |
| public ServerSocket | Returns: the ServerSocketthe port to which to bind the ServerSocket port, String String address)Returns a server socket bound to the specified port. |
| public Socket | Returns: the socketthe existing socket, can be null socket, String the server host host, int the server port port)If socket argument is not null, returns it. |
| public Socket | Returns: the socketthe server host host, int the server port port)Creates a socket and connects it to the specified remote host at the specified remote port. |
| public static HsqlSocketFactory | Returns: a new factorywhether to retrieve a factory producing SSL sockets tls)Retrieves an HsqlSocketFactory whose subclass and attributes are determined by the specified argument, tls. |
| private static HsqlSocketFactory | |
| private static HsqlSocketFactory | |
| public boolean | Returns: true if this factory produces secure socketsRetrieves whether this factory produces secure sockets. |
| private static HsqlSocketFactory | Returns: a new secure socket factorythe fully qualified name of the desired
class to construct implClass)Retrieves a new HsqlSocketFactory whose class is determined by the implClass argument. |
| plainImpl | back to summary |
|---|---|
| private static HsqlSocketFactory plainImpl | |
| sslImpl | back to summary |
|---|---|
| private static HsqlSocketFactory sslImpl | |
| HsqlSocketFactory | back to summary |
|---|---|
| protected HsqlSocketFactory() External construction disabled. New factory instances are retrieved through the newHsqlSocketFactory method instead. | |
| configureSocket | back to summary |
|---|---|
| public void configureSocket(Socket socket) | |
| createServerSocket | back to summary |
|---|---|
| public ServerSocket createServerSocket(int port) throws Exception Returns a server socket bound to the specified port. The socket is configured with the socket options given to this factory.
| |
| createServerSocket | back to summary |
|---|---|
| public ServerSocket createServerSocket(int port, String address) throws Exception Returns a server socket bound to the specified port. The socket is configured with the socket options given to this factory.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(Socket socket, String host, int port) throws Exception If socket argument is not null, returns it. If it is null, 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. | |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(String host, int port) throws Exception 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. | |
| getInstance | back to summary |
|---|---|
| public static HsqlSocketFactory getInstance(boolean tls) throws Exception Retrieves an HsqlSocketFactory whose subclass and attributes are determined by the specified argument, tls.
| |
| getPlainImpl | back to summary |
|---|---|
| private static HsqlSocketFactory getPlainImpl() | |
| getSSLImpl | back to summary |
|---|---|
| private static HsqlSocketFactory getSSLImpl() throws Exception | |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Retrieves whether this factory produces secure sockets.
| |
| newFactory | back to summary |
|---|---|
| private static HsqlSocketFactory newFactory(String implClass) throws Exception Retrieves a new HsqlSocketFactory whose class is determined by the implClass argument. The basic contract here is that implementations constructed by this method should return true upon calling isSecure() iff they actually create secure sockets. There is no way to guarantee this directly here, so it is simply trusted that an implementation is secure if it returns true for calls to isSecure();
| |