|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.http.HttpServer | +--org.mortbay.jetty.Server | +--org.mortbay.jetty.plus.Server
The Jetty HttpServer. This specialization of org.mortbay.jetty.Server adds knowledge about JNDI and Transaction Management
Nested Class Summary |
Nested classes inherited from class org.mortbay.http.HttpServer |
HttpServer.ComponentEvent, HttpServer.ComponentEventListener |
Constructor Summary | |
Server()
Constructor. |
|
Server(Resource configuration)
Constructor. |
|
Server(java.lang.String configuration)
Constructor. |
|
Server(java.net.URL configuration)
Constructor. |
Method Summary | |
void |
addService(Service service)
Add a Service to a Server. |
static void |
main(java.lang.String[] arg)
Construct server from command line arguments. |
void |
start()
Start all handlers then listeners. |
void |
stop(boolean graceful)
Stop all listeners then all contexts. |
Methods inherited from class org.mortbay.jetty.Server |
addWebApplication, addWebApplication, addWebApplication, addWebApplication, addWebApplications, addWebApplications, addWebApplications, addWebApplications, configure, getConfiguration, getRootWebApp, setRootWebApp |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Server()
public Server(java.lang.String configuration) throws java.io.IOException
configuration
- The filename or URL of the XML
configuration file.public Server(Resource configuration) throws java.io.IOException
configuration
- The filename or URL of the XML
configuration file.public Server(java.net.URL configuration) throws java.io.IOException
configuration
- The filename or URL of the XML
configuration file.Method Detail |
public void addService(Service service)
service
- eg TMService, MailServicepublic void start() throws MultiException
start
in interface LifeCycle
start
in class HttpServer
MultiException
- A collection of exceptions thrown by
start() method of subcomponents of the HttpServer.public void stop(boolean graceful) throws java.lang.InterruptedException
stop
in class HttpServer
graceful
- If true and statistics are on for a context,
then this method will wait for requestsActive to go to zero
before stopping that context.
java.lang.InterruptedException
public static void main(java.lang.String[] arg)
HttpServer
arg
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |