Constructor and Description |
---|
WebServer() |
Modifier and Type | Method and Description |
---|---|
String |
addSession(Connection conn)
Create a session with a given connection.
|
boolean |
getAllowOthers()
Check if remote connections are allowed.
|
String |
getName()
Get the human readable name of the service.
|
int |
getPort()
Gets the port this service is listening on.
|
String |
getType()
Get the human readable short name of the service.
|
String |
getURL()
Get the URL of this service in a human readable form
|
void |
init(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.
|
public void init(String... args)
Service
public String getURL()
Service
public void start()
Service
public void listen()
Service
public boolean isRunning(boolean traceError)
Service
public boolean isStopped()
public void stop()
Service
public String getType()
Service
public String getName()
Service
public boolean getAllowOthers()
Service
getAllowOthers
in interface Service
public int getPort()
Service
public void setShutdownHandler(ShutdownHandler shutdownHandler)
public String addSession(Connection conn) throws SQLException
conn
- the connectionSQLException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.