WebApp
For each connection to a session, an object of this class is created.
This class is used by the H2 Console.
| Methods |
| String |
adminShutdown()
Stop the application and the server.
|
| String |
adminShutdown()
Stop the application and the server.
Returns:
the page to display
|
| boolean |
getCache()
|
| boolean |
getCache()
|
| String |
getMimeType()
Get the current mime type.
|
| String |
getMimeType()
Get the current mime type.
Returns:
the mime type
|
| WebSession |
getSession()
|
| WebSession |
getSession()
|
| String |
processRequest(String file, String hostAddr)
Process an HTTP request.
|
| String |
processRequest(String file, String hostAddr)
Process an HTTP request.
Parameters:
file - the file that was requested
hostAddr - the host address
Returns:
the name of the file to return to the client
|
| void |
query(Connection conn, String s, int i, int size, StringBuilder buff)
Execute a query and append the result to the buffer.
|
| void |
query(Connection conn, String s, int i, int size, StringBuilder buff)
Execute a query and append the result to the buffer.
Parameters:
conn - the connection
s - the statement
i - the index
size - the number of statements
buff - the target buffer
|
| void |
setSession(WebSession session, Properties attributes)
Set the web session and attributes.
|
| void |
setSession(WebSession session, Properties attributes)
Set the web session and attributes.
Parameters:
session - the session
attributes - the attributes
|
attributes
The session attributes
cache
Whether the response can be cached.
The language in the HTTP header.
mimeType
The mime type of the current response.
server
The web server.
session
The session.
stop
Whether to close the connection.