|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.server.web.WebServer
public class WebServer
The web server is a simple standalone HTTP server that implements the H2 Console application. It is not optimized for performance.
| Constructor Summary | |
|---|---|
WebServer()
|
|
| Method Summary | |
|---|---|
java.lang.String |
addSession(java.sql.Connection conn)
Create a session with a given connection. |
boolean |
getAllowOthers()
Check if remote connections are allowed. |
java.lang.String |
getName()
Get the human readable name of the service. |
int |
getPort()
Gets the port this service is listening on. |
java.lang.String |
getType()
Get the human readable short name of the service. |
java.lang.String |
getURL()
Get the URL of this service in a human readable form |
void |
init(java.lang.String... args)
Initialize the service from command line options. |
boolean |
isDaemon()
Check if a daemon thread should be used. |
boolean |
isRunning(boolean traceError)
Check if the service is running. |
boolean |
isStopped()
|
void |
listen()
Listen for incoming connections. |
void |
setShutdownHandler(ShutdownHandler shutdownHandler)
|
void |
start()
Start the service. |
void |
stop()
Stop the service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebServer()
| Method Detail |
|---|
public void init(java.lang.String... args)
Service
init in interface Serviceargs - the command line optionspublic java.lang.String getURL()
Service
getURL in interface Servicepublic void start()
Service
start in interface Servicepublic void listen()
Service
listen in interface Servicepublic boolean isRunning(boolean traceError)
Service
isRunning in interface ServicetraceError - if errors should be written
public boolean isStopped()
public void stop()
Service
stop in interface Servicepublic java.lang.String getType()
Service
getType in interface Servicepublic java.lang.String getName()
Service
getName in interface Servicepublic boolean getAllowOthers()
Service
getAllowOthers in interface Servicepublic int getPort()
Service
getPort in interface Servicepublic void setShutdownHandler(ShutdownHandler shutdownHandler)
public java.lang.String addSession(java.sql.Connection conn)
throws java.sql.SQLException
conn - the connection
java.sql.SQLExceptionpublic boolean isDaemon()
Service
isDaemon in interface Service
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||