|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mortbay.util.Container
org.mortbay.http.HttpServer
org.mortbay.jetty.Server
org.mortbay.jetty.plus.Server
public class Server
The Jetty HttpServer. This specialization of org.mortbay.jetty.Server adds knowledge about JNDI and Transaction Management
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. |
protected void |
doStart()
Start all handlers then listeners. |
protected void |
doStop()
Stop all listeners then all contexts. |
static void |
main(java.lang.String[] arg)
|
protected WebApplicationContext |
newWebApplicationContext(java.lang.String webApp)
Create a new WebApplicationContext. |
Methods inherited from class org.mortbay.jetty.Server |
---|
addWebApplication, addWebApplication, addWebApplications, addWebApplications, addWebApplications, addWebApplications, addWebApplications, configure, getConfiguration, getRootWebApp, getStopAtShutdown, getWebApplicationConfigurationClassNames, newHttpContext, setRootWebApp, setStopAtShutdown, setWebApplicationConfigurationClassNames |
Methods inherited from class org.mortbay.util.Container |
---|
addComponent, addEventListener, getComponents, isFailed, isStarted, isStarting, isStopping, removeComponent, removeEventListener, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.mortbay.util.LifeCycle |
---|
isStarted, start, stop |
Methods inherited from interface org.mortbay.util.EventProvider |
---|
addEventListener, removeEventListener |
Constructor Detail |
---|
public Server()
public Server(java.lang.String configuration) throws java.io.IOException
configuration
- The filename or URL of the XML
configuration file.
java.io.IOException
public Server(Resource configuration) throws java.io.IOException
configuration
- The filename or URL of the XML
configuration file.
java.io.IOException
public Server(java.net.URL configuration) throws java.io.IOException
configuration
- The filename or URL of the XML
configuration file.
java.io.IOException
Method Detail |
---|
public void addService(Service service)
service
- eg TMService, MailServiceprotected void doStart() throws java.lang.Exception
doStart
in class HttpServer
MultiException
- A collection of exceptions thrown by
start() method of subcomponents of the HttpServer.
java.lang.Exception
protected void doStop() throws java.lang.InterruptedException
doStop
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
- If interrupted, stop may not have
been called on everything.public static void main(java.lang.String[] arg)
protected WebApplicationContext newWebApplicationContext(java.lang.String webApp)
newWebApplicationContext
in class Server
webApp
- The Web application directory or WAR file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |