TorqueBox 3.1.2

org.torquebox.web.rack.processors
Class RackWebApplicationInstaller

java.lang.Object
  extended by org.torquebox.web.rack.processors.RackWebApplicationInstaller
All Implemented Interfaces:
org.jboss.as.server.deployment.DeploymentUnitProcessor

public class RackWebApplicationInstaller
extends Object
implements org.jboss.as.server.deployment.DeploymentUnitProcessor

 Stage: DESCRIBE
    In: RackApplicationMetaData, WebMetaData, JBossWebMetaData
   Out: WebMetaData, JBossWebMetaData
 
Makes the JBossWebMetaData depend on the RackApplicationPool, and sets up Java servlet filters to delegate to the Rack application


Field Summary
static int DEFAULT_SESSION_TIMEOUT_MINUTES
          Default session timeout (30 minutes).
static String EXPANDED_WAR_URL_ATTACHMENT_NAME
           
static String FIVE_HUNDRED_SERVLET_CLASS_NAME
           
static String FIVE_HUNDRED_SERVLET_NAME
           
static String LOCALHOST_MBEAN_NAME
           
static String RACK_FILTER_NAME
           
static String SENDFILE_FILTER_NAME
           
static String STATIC_RESOURCE_SERVLET_CLASS_NAME
           
static String STATIC_RESROUCE_SERVLET_NAME
           
 
Constructor Summary
RackWebApplicationInstaller()
           
 
Method Summary
protected  org.jboss.metadata.web.spec.MimeMappingMetaData createMimeMapping(String extension, String mimeType)
           
 void deploy(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext)
           
protected  void ensureSomeServlet(RackMetaData rackAppMetaData, org.jboss.metadata.web.spec.WebMetaData webMetaData)
           
protected  void setUpPoolDependency(RackMetaData rackAppMetaData, org.jboss.metadata.web.jboss.JBossWebMetaData jbossWebMetaData)
           
protected  void setUpRackFilter(org.jboss.as.server.deployment.DeploymentUnit unit, RackMetaData rackAppMetaData, org.jboss.metadata.web.spec.WebMetaData webMetaData)
           
protected  void setUpSendfileFilter(org.jboss.metadata.web.spec.WebMetaData webMetaData)
           
protected  void setUpStaticResourceServlet(RackMetaData rackAppMetaData, org.jboss.metadata.web.spec.WebMetaData webMetaData, boolean enablePageCache)
           
 void undeploy(org.jboss.as.server.deployment.DeploymentUnit context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SESSION_TIMEOUT_MINUTES

public static final int DEFAULT_SESSION_TIMEOUT_MINUTES
Default session timeout (30 minutes).

See Also:
Constant Field Values

SENDFILE_FILTER_NAME

public static final String SENDFILE_FILTER_NAME
See Also:
Constant Field Values

RACK_FILTER_NAME

public static final String RACK_FILTER_NAME
See Also:
Constant Field Values

STATIC_RESROUCE_SERVLET_NAME

public static final String STATIC_RESROUCE_SERVLET_NAME
See Also:
Constant Field Values

STATIC_RESOURCE_SERVLET_CLASS_NAME

public static final String STATIC_RESOURCE_SERVLET_CLASS_NAME

FIVE_HUNDRED_SERVLET_NAME

public static final String FIVE_HUNDRED_SERVLET_NAME
See Also:
Constant Field Values

FIVE_HUNDRED_SERVLET_CLASS_NAME

public static final String FIVE_HUNDRED_SERVLET_CLASS_NAME

LOCALHOST_MBEAN_NAME

public static final String LOCALHOST_MBEAN_NAME
See Also:
Constant Field Values

EXPANDED_WAR_URL_ATTACHMENT_NAME

public static final String EXPANDED_WAR_URL_ATTACHMENT_NAME
See Also:
Constant Field Values
Constructor Detail

RackWebApplicationInstaller

public RackWebApplicationInstaller()
Method Detail

deploy

public void deploy(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext)
            throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
Specified by:
deploy in interface org.jboss.as.server.deployment.DeploymentUnitProcessor
Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException

setUpRackFilter

protected void setUpRackFilter(org.jboss.as.server.deployment.DeploymentUnit unit,
                               RackMetaData rackAppMetaData,
                               org.jboss.metadata.web.spec.WebMetaData webMetaData)

setUpSendfileFilter

protected void setUpSendfileFilter(org.jboss.metadata.web.spec.WebMetaData webMetaData)

setUpStaticResourceServlet

protected void setUpStaticResourceServlet(RackMetaData rackAppMetaData,
                                          org.jboss.metadata.web.spec.WebMetaData webMetaData,
                                          boolean enablePageCache)

ensureSomeServlet

protected void ensureSomeServlet(RackMetaData rackAppMetaData,
                                 org.jboss.metadata.web.spec.WebMetaData webMetaData)

setUpPoolDependency

protected void setUpPoolDependency(RackMetaData rackAppMetaData,
                                   org.jboss.metadata.web.jboss.JBossWebMetaData jbossWebMetaData)

createMimeMapping

protected org.jboss.metadata.web.spec.MimeMappingMetaData createMimeMapping(String extension,
                                                                            String mimeType)

undeploy

public void undeploy(org.jboss.as.server.deployment.DeploymentUnit context)
Specified by:
undeploy in interface org.jboss.as.server.deployment.DeploymentUnitProcessor

TorqueBox 3.1.2

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.