Uses of Class
org.codehaus.cargo.module.webapp.WebXml

Packages that use WebXml
org.codehaus.cargo.module.webapp   
org.codehaus.cargo.module.webapp.merge   
 

Uses of WebXml in org.codehaus.cargo.module.webapp
 

Methods in org.codehaus.cargo.module.webapp that return WebXml
 WebXml WarArchive.getWebXml()
          Returns the deployment descriptor of the web application.
 WebXml DefaultWarArchive.getWebXml()
          Returns the deployment descriptor of the web application.
static WebXml WebXmlIo.newWebXml(WebXmlVersion theVersion)
          Creates a new empty deployment descriptor.
 WebXml WebXmlTypeAwareParser.parse()
          Perform the parsing of the passed stream, and return a Web XML from the contents.
static WebXml WebXmlIo.parseWebXml(java.io.InputStream theInput, org.xml.sax.EntityResolver theEntityResolver)
          Parses a deployment descriptor provided as input stream.
static WebXml WebXmlIo.parseWebXmlFromFile(java.io.File theFile, org.xml.sax.EntityResolver theEntityResolver)
          Parses a deployment descriptor stored in a regular file.
 

Methods in org.codehaus.cargo.module.webapp with parameters of type WebXml
static void WebXmlUtils.addContextParam(WebXml webXml, java.lang.String name, java.lang.String value)
          Adds a new context-param element to the descriptor.
static void WebXmlUtils.addEjbRef(WebXml webXml, EjbRef ref)
          Add an EJB Reference.
static void WebXmlUtils.addFilter(WebXml webXml, Filter filter)
           
static void WebXmlUtils.addFilter(WebXml webXml, java.lang.String filterName, java.lang.String filterClass)
          Add a filter to the descriptor.
static void WebXmlUtils.addFilterInitParam(WebXml webXml, java.lang.String name, java.lang.String paramName, java.lang.String paramValue)
          Add an init param to a filter.
static void WebXmlUtils.addFilterMapping(WebXml webXml, FilterMapping rhs)
           
static void WebXmlUtils.addJspFile(WebXml webXml, java.lang.String theServletName, java.lang.String theJspFile)
          Add a JSP file.
static void WebXmlUtils.addSecurityConstraint(WebXml webXml, java.lang.String theWebResourceName, java.lang.String theUrlPattern, java.util.List theRoles)
          Add a security constraint.
static void WebXmlUtils.addSecurityRole(WebXml webXml, java.lang.String theRoleName)
           
static void WebXmlUtils.addServlet(WebXml webXml, Servlet element)
          Add a servlet to the web xml.
static void WebXmlUtils.addServlet(WebXml webXml, java.lang.String servletName, java.lang.String servletClass)
          Add a servlet to the descriptor.
static void WebXmlUtils.addServletInitParam(WebXml webXml, java.lang.String theServletName, java.lang.String name, java.lang.String value)
          Add an init param to a servlet.
static void WebXmlUtils.addServletMapping(WebXml webXml, java.lang.String theServletName, java.lang.String theUrlPattern)
           
static void WebXmlUtils.addServletRunAsRoleName(WebXml webXml, java.lang.String theServletName, java.lang.String theRoleName)
           
static org.jdom.Element WebXmlUtils.getContextParam(WebXml webXml, java.lang.String paramName)
          Returns the element that contains the definition of a specific context param, or null if a context param of the specified name is not defined in the descriptor.
static Filter WebXmlUtils.getFilter(WebXml theWebXml, java.lang.String filterName)
           
static java.lang.String WebXmlUtils.getFilterInitParam(WebXml theWebXml, java.lang.String filterName, java.lang.String paramName)
           
static java.util.Iterator WebXmlUtils.getFilterInitParamNames(WebXml webXml, java.lang.String name)
          Get the init parameter names for a filter.
static java.util.Iterator WebXmlUtils.getFilterMappingElements(WebXml webXml, java.lang.String theFilterName)
          Returns the filter mappings that the specified filter is mapped to in an ordered list.
static java.util.Iterator WebXmlUtils.getFilterMappings(WebXml webXml, java.lang.String theFilterName)
          Returns the URL-patterns that the specified filter is mapped to in an ordered list.
static java.util.Iterator WebXmlUtils.getFilterNames(WebXml webXml)
           
static java.util.Iterator WebXmlUtils.getFilterNamesForClass(WebXml webXml, java.lang.String className)
          Returns a list of names of filters that are mapped to the specified class.
static java.lang.String WebXmlUtils.getLoginConfigAuthMethod(WebXml webXml)
          Get the login config authorization method.
static SecurityConstraint WebXmlUtils.getSecurityConstraint(WebXml webXml, java.lang.String theUrlPattern)
          Get a security constraint by URL.
static org.jdom.Element WebXmlUtils.getSecurityRole(WebXml webXml, java.lang.String theRoleName)
          Get the security role by name.
static java.util.Iterator WebXmlUtils.getSecurityRoleNames(WebXml webXml)
          Get the security role names.
static Servlet WebXmlUtils.getServlet(WebXml theWebXml, java.lang.String servletName)
           
static java.lang.String WebXmlUtils.getServletInitParam(WebXml theWebXml, java.lang.String servletName, java.lang.String paramName)
           
static java.util.Iterator WebXmlUtils.getServletInitParamNames(WebXml webXml, java.lang.String theServletName)
          Get the names of all the servlet init parameters.
static java.util.Iterator WebXmlUtils.getServletMappings(WebXml webXml, java.lang.String theServletName)
          Get the servlet mappings to the named servlet.
static java.util.Iterator WebXmlUtils.getServletNames(WebXml webXml)
          Get an iterator of the servlet names in the web xml.
static java.util.Iterator WebXmlUtils.getServletNamesForClass(WebXml webXml, java.lang.String className)
          Get the names that this servlet uses.
static java.util.Iterator WebXmlUtils.getServletNamesForJspFile(WebXml webXml, java.lang.String theJspFile)
          Returns a list of names of servlets that are mapped to the specified JSP file.
static java.lang.String WebXmlUtils.getServletRunAsRoleName(WebXml webXml, java.lang.String theServletName)
          For a named servlet, return the run-as role name.
static boolean WebXmlUtils.hasContextParam(WebXml webXml, java.lang.String theParamName)
          Returns whether a context param by the specified name is defined in the deployment descriptor.
static boolean WebXmlUtils.hasFilter(WebXml webXml, java.lang.String theFilterName)
          Returns whether a servlet filter by the specified name is defined in the deployment descriptor.
static boolean WebXmlUtils.hasLoginConfig(WebXml webXml)
          Does the descriptor have a login config?
static boolean WebXmlUtils.hasSecurityConstraint(WebXml webXml, java.lang.String theUrlPattern)
          Does the descriptor have a security constraint for a URL?
static boolean WebXmlUtils.hasSecurityRole(WebXml webXml, java.lang.String theRoleName)
          Does the role have a security definition?
static boolean WebXmlUtils.hasServlet(WebXml webXml, java.lang.String servletName)
          Does the web xml have a named servlet.
static void WebXmlUtils.setLoginConfig(WebXml webXml, java.lang.String theAuthMethod, java.lang.String theRealmName)
          Set the login config.
 

Uses of WebXml in org.codehaus.cargo.module.webapp.merge
 

Methods in org.codehaus.cargo.module.webapp.merge that return WebXml
 WebXml MergedWarArchive.getWebXml()
          Returns the deployment descriptor of the web application.
 

Methods in org.codehaus.cargo.module.webapp.merge with parameters of type WebXml
protected  void WebXmlMerger.checkServletVersions(WebXml theWebXml)
          Checks the versions of the servlet API in each descriptor, and logs a warning if a mismatch might result in the loss of definitions.
protected  VendorWebAppDescriptor WebXmlMerger.getVendorWebAppDescriptor(WebXml theWebXml, java.lang.Class clazz)
          Get the vendor web app descriptor out of the web xml.
protected  void WebXmlMerger.mergeFilters(WebXml theWebXml)
          Merges the servlet definitions from the specified descriptor into the original descriptor.
protected  void WebXmlMerger.mergeSecurityRoles(WebXml theWebXml)
          Merges the security roles from the provided descriptor into the original descriptor.
protected  void WebXmlMerger.mergeServlets(WebXml theWebXml)
          Merges the servlet definitions from the specified descriptor into the original descriptor.
 



Copyright © 2004-2011 Codehaus. All Rights Reserved.