org.mortbay.jetty
public class Server extends HttpServer
Version: $Revision: 1.40 $
See Also: XmlConfiguration ServletHttpContext
Constructor Summary | |
---|---|
Server() Constructor. | |
Server(String configuration) Constructor. | |
Server(Resource configuration) Constructor. | |
Server(URL configuration) Constructor. |
Method Summary | |
---|---|
WebApplicationContext | addWebApplication(String contextPathSpec, String webApp) Add Web Application. |
WebApplicationContext | addWebApplication(String virtualHost, String contextPathSpec, String webApp) Add Web Application. |
WebApplicationContext[] | addWebApplications(String webapps) Add Web Applications.
|
WebApplicationContext[] | addWebApplications(String host, String webapps) Add Web Applications.
|
WebApplicationContext[] | addWebApplications(String host, String webapps, boolean extract) Add Web Applications.
|
WebApplicationContext[] | addWebApplications(String host, String webapps, String defaults, boolean extract) Add Web Applications.
|
WebApplicationContext[] | addWebApplications(String host, String webapps, String defaults, boolean extract, boolean java2CompliantClassLoader) Add Web Applications.
|
void | configure(String configuration) Configure the server from an XML file. |
String | getConfiguration() |
String | getRootWebApp() Get the root webapp name. |
boolean | getStopAtShutdown() |
String[] | getWebApplicationConfigurationClassNames() |
static void | main(String[] arg) |
protected HttpContext | newHttpContext() Create a new ServletHttpContext.
|
protected WebApplicationContext | newWebApplicationContext(String webApp) Create a new WebApplicationContext.
|
void | setRootWebApp(String rootWebApp) Set the root webapp name. |
void | setStopAtShutdown(boolean stop) |
void | setWebApplicationConfigurationClassNames(String[] configurationClassNames) setWebApplicationConfigurationClasses
Set up the list of classnames of WebApplicationContext.Configuration
implementations that will be applied to configure every webapp.
|
Parameters: configuration The filename or URL of the XML configuration file.
Parameters: configuration The filename or URL of the XML configuration file.
Parameters: configuration The filename or URL of the XML configuration file.
Parameters: contextPathSpec The context path spec. Which must be of the form / or /path/* webApp The Web application directory or WAR file.
Returns: The WebApplicationContext
Throws: IOException
Parameters: virtualHost Virtual host name or null contextPathSpec The context path spec. Which must be of the form / or /path/* webApp The Web application directory or WAR file.
Returns: The WebApplicationContext
Throws: IOException
Parameters: webapps Directory file name or URL to look for auto webapplication.
Throws: IOException
Parameters: host Virtual host name or null webapps Directory file name or URL to look for auto webapplication.
Throws: IOException
Parameters: host Virtual host name or null webapps Directory file name or URL to look for auto webapplication. extract If true, extract war files
Throws: IOException
Parameters: host Virtual host name or null webapps Directory file name or URL to look for auto webapplication. defaults The defaults xml filename or URL which is loaded before any in the web app. Must respect the web.dtd. If null the default defaults file is used. If the empty string, then no defaults file is used. extract If true, extract war files
Throws: IOException
Parameters: host Virtual host name or null webapps Directory file name or URL to look for auto webapplication. defaults The defaults xml filename or URL which is loaded before any in the web app. Must respect the web.dtd. If null the default defaults file is used. If the empty string, then no defaults file is used. extract If true, extract war files java2CompliantClassLoader True if java2 compliance is applied to all webapplications
Throws: IOException
Parameters: configuration The filename or URL of the XML configuration file.
Returns: The name of the root webapp (eg. "root" for root.war).
Returns: ServletHttpContext
Parameters: webApp The Web application directory or WAR file.
Returns: WebApplicationContext
Parameters: rootWebApp The name of the root webapp (eg. "root" for root.war).
Parameters: configurationClasses