| java.lang.Object org.hsqldb.WebServerConnection
WebServerConnection | class WebServerConnection implements Runnable(Code) | | A web server connection is a transient object that lasts for the duration
of the SQL call and its result. This class uses the notification
mechanism in WebServer to allow cleanup after a SHUTDOWN.
The POST method is used for login and subsequent remote calls. In 1.7.2
The initial login establishes a persistent Session and returns its handle
to the client. Subsequent calls are executed in the context of this
session.
(fredt@users)
Rewritten in version HSQLDB 1.7.2, based on original Hypersonic code.
author: Thomas Mueller (Hypersonic SQL Group) author: fredt@users version: 1.7.2 since: Hypersonic SQL |
Method Summary | |
String | getConnectionThreadName() Retrieves the thread name to be used when
this object is the Runnable object of a Thread. | String | getHead(String responseCodeString, boolean addInfo, String mimeType, int length) Retrieves an HTTP protocol header given the supplied arguments. | void | processQuery(InputStream inStream) Processes a database query in HSQL protocol that has been
tunneled over HTTP protocol. | public void | run() Causes this WebServerConnection to process its HTTP request
in a blocking fashion until the request is fully processed
or an exception occurs internally. |
BUFFER_SIZE | final static int BUFFER_SIZE(Code) | | |
BYTES_CONTENT | final static byte[] BYTES_CONTENT(Code) | | |
BYTES_GET | final static byte[] BYTES_GET(Code) | | |
BYTES_HEAD | final static byte[] BYTES_HEAD(Code) | | |
BYTES_POST | final static byte[] BYTES_POST(Code) | | |
BYTES_WHITESPACE | final static byte[] BYTES_WHITESPACE(Code) | | |
WebServerConnection | WebServerConnection(Socket socket, WebServer server)(Code) | | Creates a new WebServerConnection to the specified WebServer on the
specified socket.
Parameters: socket - the network socket on which WebServer communicationtakes place Parameters: server - the WebServer instance to which the objectrepresents a connection |
getConnectionThreadName | String getConnectionThreadName()(Code) | | Retrieves the thread name to be used when
this object is the Runnable object of a Thread.
the thread name to be used whenthis object is the Runnable object of a Thread. |
getHead | String getHead(String responseCodeString, boolean addInfo, String mimeType, int length)(Code) | | Retrieves an HTTP protocol header given the supplied arguments.
Parameters: responseCodeString - the HTTP response code Parameters: addInfo - true if additional header info is to be added Parameters: mimeType - the Content-Type field value Parameters: length - the Content-Length field value an HTTP protocol header |
processQuery | void processQuery(InputStream inStream)(Code) | | Processes a database query in HSQL protocol that has been
tunneled over HTTP protocol.
Parameters: inStream - the incoming byte stream representing the HSQL protocoldatabase query |
run | public void run()(Code) | | Causes this WebServerConnection to process its HTTP request
in a blocking fashion until the request is fully processed
or an exception occurs internally.
This method reads the Request line then delegates action to subroutines.
|
|
|