|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.http.deployer.Deployer<V,T>
com.sun.grizzly.http.deployer.FromURIDeployer<WarDeployable,WarDeploymentConfiguration>
com.sun.grizzly.http.servlet.deployer.WarDeployer
public class WarDeployer
FromURIDeployer
for War files.
Constructor Summary | |
---|---|
WarDeployer()
|
Method Summary | |
---|---|
static void |
cleanup(String folder)
Will try to delete the folder and his children |
protected Map<GrizzlyAdapter,Set<String>> |
convert(WarDeployable toDeploy,
WarDeploymentConfiguration configuration)
Converts deployable object to Map of GrizzlyAdapter s to paths to deploy to. |
protected WarDeployable |
fromURI(URI uri,
WarDeploymentConfiguration configuration)
Create object to deploy from uri. |
static String |
getDefaultWorkFolder()
|
protected WebAppAdapter |
getWebAppAdapter(ClassLoader webAppCL)
returns a WebAppAdapter. |
String |
getWorkFolder()
|
boolean |
isForceCleanUp()
|
protected void |
setExtraConfig(ServletAdapter sa,
WarDeploymentConfiguration configuration)
Should be used to set configuration that are not in web.xml |
void |
setForceCleanUp(boolean forceCleanUp)
|
void |
setWorkFolder(String workFolder)
|
Methods inherited from class com.sun.grizzly.http.deployer.FromURIDeployer |
---|
deploy |
Methods inherited from class com.sun.grizzly.http.deployer.Deployer |
---|
deploy, undeploy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WarDeployer()
Method Detail |
---|
protected Map<GrizzlyAdapter,Set<String>> convert(WarDeployable toDeploy, WarDeploymentConfiguration configuration) throws DeployException
Map
of GrizzlyAdapter
s to paths to deploy to.
convert
in class Deployer<WarDeployable,WarDeploymentConfiguration>
toDeploy
- Deployable object to be converted.configuration
- Configuration of deployment.
Map
ping GrizzlyAdapter
s to paths to be deployed under (Set
of
String
s).
DeployException
- Error while creating adapters.protected WarDeployable fromURI(URI uri, WarDeploymentConfiguration configuration) throws DeployException
fromURI
in class FromURIDeployer<WarDeployable,WarDeploymentConfiguration>
uri
- of deployable object.configuration
- Configuration of deployment.
DeployException
- If loading Deployable from uri failed.public static String getDefaultWorkFolder()
public static void cleanup(String folder)
folder
- foldernameprotected WebAppAdapter getWebAppAdapter(ClassLoader webAppCL)
webAppCL
- the ClassLoader
protected void setExtraConfig(ServletAdapter sa, WarDeploymentConfiguration configuration)
sa
- ServletAdapterconfiguration
- configurationpublic boolean isForceCleanUp()
public void setForceCleanUp(boolean forceCleanUp)
public String getWorkFolder()
public void setWorkFolder(String workFolder)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |