|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.server.web.WebApp
public class WebApp
For each connection to a session, an object of this class is created. This class is used by the H2 Console.
Field Summary | |
---|---|
protected java.util.Properties |
attributes
The session attributes |
protected boolean |
cache
Whether the response can be cached. |
protected java.lang.String |
headerLanguage
The language in the HTTP header. |
protected java.lang.String |
mimeType
The mime type of the current response. |
protected WebServer |
server
The web server. |
protected org.h2.server.web.WebSession |
session
The session. |
protected boolean |
stop
Whether to close the connection. |
Method Summary | |
---|---|
protected java.lang.String |
adminShutdown()
Stop the application and the server. |
protected boolean |
loginAsync(java.lang.String driver,
java.lang.String url,
java.lang.String user,
java.lang.String password)
Login in a separate thread if possible. |
protected void |
query(java.sql.Connection conn,
java.lang.String s,
int i,
int size,
java.lang.StringBuilder buff)
Execute a query and append the result to the buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected WebServer server
protected org.h2.server.web.WebSession session
protected java.util.Properties attributes
protected java.lang.String mimeType
protected boolean cache
protected boolean stop
protected java.lang.String headerLanguage
Method Detail |
---|
protected java.lang.String adminShutdown()
protected boolean loginAsync(java.lang.String driver, java.lang.String url, java.lang.String user, java.lang.String password)
driver
- the driver classurl
- the database URLuser
- the user namepassword
- the password
protected void query(java.sql.Connection conn, java.lang.String s, int i, int size, java.lang.StringBuilder buff)
conn
- the connections
- the statementi
- the indexsize
- the number of statementsbuff
- the target buffer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |