org.mortbay.jetty.plus
Class Server

java.lang.Object
  extended byorg.mortbay.util.Container
      extended byorg.mortbay.http.HttpServer
          extended byorg.mortbay.jetty.Server
              extended byorg.mortbay.jetty.plus.Server
All Implemented Interfaces:
EventProvider, LifeCycle, java.io.Serializable

public class Server
extends Server

The Jetty HttpServer. This specialization of org.mortbay.jetty.Server adds knowledge about JNDI and Transaction Management

Author:
Miro Halas
See Also:
Serialized Form

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.
 
Methods inherited from class org.mortbay.jetty.Server
addWebApplication, addWebApplication, addWebApplications, addWebApplications, addWebApplications, addWebApplications, addWebApplications, configure, getConfiguration, getRootWebApp, getStopAtShutdown, getWebApplicationConfigurationClassNames, setRootWebApp, setStopAtShutdown, setWebApplicationConfigurationClassNames
 
Methods inherited from class org.mortbay.http.HttpServer
addContext, addContext, addContext, addContext, addHostAlias, addListener, addListener, addListener, addRealm, destroy, findHandler, getConnections, getConnectionsDurationAve, getConnectionsDurationMax, getConnectionsOpen, getConnectionsOpenMax, getConnectionsRequestsAve, getConnectionsRequestsMax, getContext, getContext, getContext, getContexts, getErrors, getHostMap, getHttpServerList, getHttpServers, getListeners, getRealm, getRequestLog, getRequests, getRequestsActive, getRequestsActiveMax, getRequestsDurationAve, getRequestsDurationMax, getRequestsPerGC, getResolveRemoteHost, getServerClasses, getStatsOn, getStatsOnMs, getStopGracefully, getSystemClasses, getTrace, join, removeContext, removeListener, removeRealm, save, service, setAnonymous, setContexts, setListeners, setRequestLog, setRequestsPerGC, setResolveRemoteHost, setServerClasses, setStatsOn, setStopGracefully, setSystemClasses, setTrace, statsReset, stop
 
Methods inherited from class org.mortbay.util.Container
addEventListener, getComponents, isStarted, removeEventListener, start, stop
 
Methods inherited from class java.lang.Object
equals, 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

Server

public Server()
Constructor.


Server

public Server(java.lang.String configuration)
       throws java.io.IOException
Constructor.

Parameters:
configuration - The filename or URL of the XML configuration file.

Server

public Server(Resource configuration)
       throws java.io.IOException
Constructor.

Parameters:
configuration - The filename or URL of the XML configuration file.

Server

public Server(java.net.URL configuration)
       throws java.io.IOException
Constructor.

Parameters:
configuration - The filename or URL of the XML configuration file.
Method Detail

addService

public void addService(Service service)
Add a Service to a Server. Examples are transaction service, mail service etc

Parameters:
service - eg TMService, MailService

main

public static void main(java.lang.String[] arg)
Description copied from class: HttpServer
Construct server from command line arguments.



Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.