org.eclipse.jetty.deploy.providers
类 WebAppProvider

java.lang.Object
  继承者 org.eclipse.jetty.util.component.AbstractLifeCycle
      继承者 org.eclipse.jetty.deploy.providers.ScanningAppProvider
          继承者 org.eclipse.jetty.deploy.providers.WebAppProvider
所有已实现的接口:
AppProvider, LifeCycle

public class WebAppProvider
extends ScanningAppProvider

Context directory App Provider.

This specialization of ScanningAppProvider is the replacement for old (and deprecated) org.eclipse.jetty.deploy.WebAppDeployer and it will scan a directory only for war files or directories files.

Webapps with names root or starting with root- are deployed at /. If the name is in the format root-hostname, then the webapp is deployed at / in the virtual host hostname.


嵌套类摘要
static class WebAppProvider.Filter
           
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
 
从类 org.eclipse.jetty.deploy.providers.ScanningAppProvider 继承的字段
_filenameFilter
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
WebAppProvider()
           
 
方法摘要
 ContextHandler createContextHandler(App app)
          Create a ContextHandler for an App
 String[] getConfigurationClasses()
           
 String getContextXmlDir()
           
 String getDefaultsDescriptor()
          Get the defaultsDescriptor.
 File getTempDir()
          Get the user supplied Work Directory.
 boolean isExtractWars()
          Get the extractWars.
 boolean isParentLoaderPriority()
          Get the parentLoaderPriority.
 void setConfigurationClasses(String[] configurations)
           
 void setContextXmlDir(String contextsDir)
          Set the directory in which to look for context XML files.
 void setDefaultsDescriptor(String defaultsDescriptor)
          Set the defaultsDescriptor.
 void setExtractWars(boolean extractWars)
          Set the extractWars.
 void setParentLoaderPriority(boolean parentLoaderPriority)
          Set the parentLoaderPriority.
 void setTempDir(File directory)
          Set the Work directory where unpacked WAR files are managed from.
 
从类 org.eclipse.jetty.deploy.providers.ScanningAppProvider 继承的方法
addScannerListener, createApp, doStart, doStop, fileAdded, fileChanged, fileRemoved, getDeployedApps, getDeploymentManager, getMonitoredDirName, getMonitoredDirResource, getScanInterval, isRecursive, setDeploymentManager, setMonitoredDir, setMonitoredDirName, setMonitoredDirResource, setRecursive, setScanInterval
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的方法
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 

构造方法详细信息

WebAppProvider

public WebAppProvider()
方法详细信息

isExtractWars

public boolean isExtractWars()
Get the extractWars.

返回:
the extractWars

setExtractWars

public void setExtractWars(boolean extractWars)
Set the extractWars.

参数:
extractWars - the extractWars to set

isParentLoaderPriority

public boolean isParentLoaderPriority()
Get the parentLoaderPriority.

返回:
the parentLoaderPriority

setParentLoaderPriority

public void setParentLoaderPriority(boolean parentLoaderPriority)
Set the parentLoaderPriority.

参数:
parentLoaderPriority - the parentLoaderPriority to set

getDefaultsDescriptor

public String getDefaultsDescriptor()
Get the defaultsDescriptor.

返回:
the defaultsDescriptor

setDefaultsDescriptor

public void setDefaultsDescriptor(String defaultsDescriptor)
Set the defaultsDescriptor.

参数:
defaultsDescriptor - the defaultsDescriptor to set

getContextXmlDir

public String getContextXmlDir()

setContextXmlDir

public void setContextXmlDir(String contextsDir)
Set the directory in which to look for context XML files.

If a webapp call "foo/" or "foo.war" is discovered in the monitored directory, then the ContextXmlDir is examined to see if a foo.xml file exists. If it does, then this deployer will not deploy the webapp and the ContextProvider should be used to act on the foo.xml file.

参数:
contextsDir -
另请参见:
ContextProvider

setConfigurationClasses

public void setConfigurationClasses(String[] configurations)
参数:
configurations - The configuration class names.

getConfigurationClasses

public String[] getConfigurationClasses()

setTempDir

public void setTempDir(File directory)
Set the Work directory where unpacked WAR files are managed from.

Default is the same as the java.io.tmpdir System Property.

参数:
directory - the new work directory

getTempDir

public File getTempDir()
Get the user supplied Work Directory.

返回:
the user supplied work directory (null if user has not set Temp Directory yet)

createContextHandler

public ContextHandler createContextHandler(App app)
                                    throws Exception
从接口 AppProvider 复制的描述
Create a ContextHandler for an App

参数:
app - The App
返回:
A ContextHandler
抛出:
IOException
Exception


Copyright © 2013. All Rights Reserved.