Package winstone
Class HostConfiguration
- java.lang.Object
-
- winstone.HostConfiguration
-
public class HostConfiguration extends Object
Manages the references to individual webapps within the container. This object handles the mapping of url-prefixes to webapps, and init and shutdown of any webapps it manages.- Version:
- $Id: HostConfiguration.java,v 1.8 2007/08/02 06:16:00 rickknowles Exp $
- Author:
- Rick Knowles
-
-
Constructor Summary
Constructors Constructor Description HostConfiguration(org.eclipse.jetty.server.Server server, String hostname, ClassLoader commonLibCL, Map<String,String> args, File webappsDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHostname()
protected File
getWebRoot(File requestedWebroot, File warfile)
Setup the webroot.protected org.eclipse.jetty.server.handler.ContextHandlerCollection
initMultiWebappDir(File webappsDir)
void
reloadWebApp(String prefix)
-
-
-
Constructor Detail
-
HostConfiguration
public HostConfiguration(org.eclipse.jetty.server.Server server, String hostname, ClassLoader commonLibCL, @NonNull Map<String,String> args, File webappsDir) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getHostname
public String getHostname()
-
reloadWebApp
public void reloadWebApp(String prefix)
-
getWebRoot
protected File getWebRoot(File requestedWebroot, File warfile) throws IOException
Setup the webroot. If a warfile is supplied, extract any files that the war file is newer than. If none is supplied, use the default temp directory.- Throws:
IOException
-
initMultiWebappDir
protected org.eclipse.jetty.server.handler.ContextHandlerCollection initMultiWebappDir(File webappsDir)
-
-