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)
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static byte[] | |
| pack-priv static byte[] | |
| pack-priv static byte[] | |
| pack-priv static byte[] | |
| pack-priv static final byte[] | |
| private static final Charset | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final int | |
| private CharsetDecoder | |
| pack-priv final byte[] | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private RowInputBinary | |
| private RowOutputBinary | |
| private WebServer | |
| private Socket |
| Access | Constructor and Description |
|---|---|
| pack-priv | WebServerConnection(Socket
the network socket on which WebServer communication
takes place socket, WebServer the WebServer instance to which the object
represents a connection server)Creates a new WebServerConnection to the specified WebServer on the specified socket. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv String | Returns: the thread name to be used when this object is the Runnable object of a Thread.Retrieves the thread name to be used when this object is the Runnable object of a Thread. |
| pack-priv String | Returns: an HTTP protocol headerthe HTTP response code responseCodeString, boolean true if additional header info is to be added addInfo, String the Content-Type field value mimeType, int the Content-Length field value length)Retrieves an HTTP protocol header given the supplied arguments. |
| private String | Returns: a best-guess mime-type string using the file extension of the name argument.Retrieves a best-guess mime-type string using the file extension of the name argument. |
| private void | processError(int
the error condition code code)Processes an HTTP error condition, sending an error response to the client. |
| private void | processGet(String
the name of the content to get name, boolean whether to send the content as well, or just the header send)Processes an HTTP GET request |
| private void | |
| pack-priv void | processQuery(InputStream
the incoming byte stream representing the HSQL protocol
database query inStream)Processes a database query in HSQL protocol that has been tunneled over HTTP protocol. |
| public void | run()
Implements java. 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 | back to summary |
|---|---|
| pack-priv static final int BUFFER_SIZE | |
| BYTES_CONTENT | back to summary |
|---|---|
| pack-priv static byte[] BYTES_CONTENT | |
| BYTES_GET | back to summary |
|---|---|
| pack-priv static byte[] BYTES_GET | |
| BYTES_HEAD | back to summary |
|---|---|
| pack-priv static byte[] BYTES_HEAD | |
| BYTES_POST | back to summary |
|---|---|
| pack-priv static byte[] BYTES_POST | |
| BYTES_WHITESPACE | back to summary |
|---|---|
| pack-priv static final byte[] BYTES_WHITESPACE | |
| ENCODING | back to summary |
|---|---|
| private static final Charset ENCODING | |
| HEADER_BAD_REQUEST | back to summary |
|---|---|
| private static final String HEADER_BAD_REQUEST | |
| HEADER_FORBIDDEN | back to summary |
|---|---|
| private static final String HEADER_FORBIDDEN | |
| HEADER_NOT_FOUND | back to summary |
|---|---|
| private static final String HEADER_NOT_FOUND | |
| HEADER_OK | back to summary |
|---|---|
| private static final String HEADER_OK | |
| hnd_content_types | back to summary |
|---|---|
| private static final int hnd_content_types | |
| iso_8859_1_decoder | back to summary |
|---|---|
| private CharsetDecoder iso_8859_1_decoder | |
| mainBuffer | back to summary |
|---|---|
| pack-priv final byte[] mainBuffer | |
| REQUEST_TYPE_BAD | back to summary |
|---|---|
| private static final int REQUEST_TYPE_BAD | |
| REQUEST_TYPE_GET | back to summary |
|---|---|
| private static final int REQUEST_TYPE_GET | |
| REQUEST_TYPE_HEAD | back to summary |
|---|---|
| private static final int REQUEST_TYPE_HEAD | |
| REQUEST_TYPE_POST | back to summary |
|---|---|
| private static final int REQUEST_TYPE_POST | |
| rowIn | back to summary |
|---|---|
| private RowInputBinary rowIn | |
| rowOut | back to summary |
|---|---|
| private RowOutputBinary rowOut | |
| server | back to summary |
|---|---|
| private WebServer server | |
| socket | back to summary |
|---|---|
| private Socket socket | |
| WebServerConnection | back to summary |
|---|---|
| pack-priv WebServerConnection(Socket socket, WebServer server) Creates a new WebServerConnection to the specified WebServer on the specified socket. | |
| getConnectionThreadName | back to summary |
|---|---|
| pack-priv String getConnectionThreadName() Retrieves the thread name to be used when this object is the Runnable object of a Thread.
| |
| getHead | back to summary |
|---|---|
| pack-priv String getHead(String responseCodeString, boolean addInfo, String mimeType, int length) Retrieves an HTTP protocol header given the supplied arguments. | |
| getMimeTypeString | back to summary |
|---|---|
| private String getMimeTypeString(String name) Retrieves a best-guess mime-type string using the file extension of the name argument.
| |
| processError | back to summary |
|---|---|
| private void processError(int code) Processes an HTTP error condition, sending an error response to the client.
| |
| processGet | back to summary |
|---|---|
| private void processGet(String name, boolean send) Processes an HTTP GET request
| |
| processPost | back to summary |
|---|---|
| private void processPost(InputStream inStream, String name) POST is used only for database access. So we can assume the strings are those generated by ClientConnectionHTTP | |
| processQuery | back to summary |
|---|---|
| pack-priv void processQuery(InputStream inStream) Processes a database query in HSQL protocol that has been tunneled over HTTP protocol.
| |
| run | back to summary |
|---|---|
| public void run() Implements java. 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. | |