Save This Page
Home » cactus-1.8.0-src » org.apache.cactus.integration.ant.deployment.webapp » [javadoc | source]
org.apache.cactus.integration.ant.deployment.webapp
public class: WebXmlMerger [javadoc | source]
java.lang.Object
   org.apache.cactus.integration.ant.deployment.webapp.WebXmlMerger
Helper class that can merge two web deployment descriptors.
Constructor:
 public WebXmlMerger(WebXml theWebXml) 
    Constructor.
    Parameters:
    theWebXml - The original descriptor
Method from org.apache.cactus.integration.ant.deployment.webapp.WebXmlMerger Summary:
checkServletVersions,   merge,   mergeContextParams,   mergeEjbLocalRefs,   mergeEjbRefs,   mergeEnvironmentEntries,   mergeFilters,   mergeLoginConfig,   mergeResourceEnvironmentReferences,   mergeResourceReferences,   mergeSecurityConstraints,   mergeSecurityRoles,   mergeServlets,   setLog
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.integration.ant.deployment.webapp.WebXmlMerger Detail:
 protected final  void 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.
 public final  void merge(WebXml theMergeWebXml) 
    Merges the merge descriptor with the original descriptor.
 protected final  void mergeContextParams(WebXml theWebXml) 
    Merges the context-param definitions from the specified descriptor into the original descriptor.
 protected final  void mergeEjbLocalRefs(WebXml theWebXml) 
    Merges the EJB local references from the provided descriptor into the original descriptor.
 protected final  void mergeEjbRefs(WebXml theWebXml) 
    Merges the EJB references from the provided descriptor into the original descriptor.
 protected final  void mergeEnvironmentEntries(WebXml theWebXml) 
    Merges the environment entries from the provided descriptor into the original descriptor.
 protected final  void mergeFilters(WebXml theWebXml) 
    Merges the servlet definitions from the specified descriptor into the original descriptor.
 protected final  void mergeLoginConfig(WebXml theWebXml) 
    Merges the login configuration from the provided descriptor into the original descriptor, thereby eventually replacing the existing login config.
 protected final  void mergeResourceEnvironmentReferences(WebXml theWebXml) 
    Merges the resource environment references from the provided descriptor into the original descriptor.
 protected final  void mergeResourceReferences(WebXml theWebXml) 
    Merges the resource references from the provided descriptor into the original descriptor.
 protected final  void mergeSecurityConstraints(WebXml theWebXml) 
    Merges the
 protected final  void mergeSecurityRoles(WebXml theWebXml) 
    Merges the security roles from the provided descriptor into the original descriptor.
 protected final  void mergeServlets(WebXml theWebXml) 
    Merges the servlet definitions from the specified descriptor into the original descriptor.
 public final  void setLog(Log theLog) 
    Sets the log to which events should be written. This method must be called before any of the other methods, because the class will rely on being able to log.