Method Summary |
|
final public void | addContextParam(Element theContextParam) Adds a new context-param element to the descriptor. |
final public void | addElement(WebXmlTag theTag, Element theElement) Adds an element of the specified tag to the descriptor. |
final public void | addFilter(String theFilterName, String theFilterClass) Adds a new servlet filter to the descriptor. |
final public void | addFilter(Element theFilter) Adds a new servlet filter to the descriptor. |
final public void | addFilterInitParam(String theFilterName, String theParamName, String theParamValue) Adds an initialization parameter to the specified filter. |
final public void | addFilterMapping(String theFilterName, String theUrlPattern) Adds a filter mapping to the descriptor. |
final public void | addJspFile(String theServletName, String theJspFile) Adds a mapped JSP file to the descriptor. |
final public void | addSecurityConstraint(String theWebResourceName, String theUrlPattern, List theRoles) Creates and adds a security-constraint to the descriptor. |
final public void | addSecurityRole(String theRoleName) Adds a new security role to the descriptor. |
final public void | addServlet(String theServletName, String theServletClass) Adds a new servlet to the descriptor. |
final public void | addServlet(Element theServlet) Adds a new servlet to the descriptor. |
final public void | addServletInitParam(String theServletName, String theParamName, String theParamValue) Adds an initialization parameter to the specified servlet. |
final public void | addServletMapping(String theServletName, String theUrlPattern) Adds a servlet mapping to the descriptor. |
final public void | addServletRunAsRoleName(String theServletName, String theRoleName) Adds a run-as declaration to the specified servlet. |
final public Element | getContextParam(String theParamName) 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. |
final public String | getContextParamName(Element theContextParam) |
final public Document | getDocument() Returns the DOM document representing the deployment descriptor. |
final public Iterator | getElements(WebXmlTag theTag) Returns an iterator over the elements that match the specified tag. |
final public Element | getFilter(String theFilterName) Returns the element that contains the definition of a specific servlet
filter, or null if a filter of the specified name is not
defined in the descriptor. |
final public String | getFilterInitParam(String theFilterName, String theParamName) Returns the value of an initialization parameter of the specified filter. |
final public Iterator | getFilterInitParamNames(String theFilterName) Returns the names of the initialization parameters of the specified
servlet filter. |
final public Iterator | getFilterMappings(String theFilterName) Returns the URL-patterns that the specified filter is mapped to in an
ordered list. |
final public Iterator | getFilterNames() Returns the names of all filters defined in the deployment descriptor. |
final public Iterator | getFilterNamesForClass(String theClassName) Returns a list of names of filters that are mapped to the specified
class. |
final public Element | getLoginConfig() Returns whether the descriptor has a login configuration. |
final public String | getLoginConfigAuthMethod() Returns the authorization method defined by the login configuration. |
final public Element | getSecurityConstraint(String theUrlPattern) Returns the element that contains the security constraint defined for the
specified URL pattern. |
final public Element | getSecurityRole(String theRoleName) Returns the element that contains the specified security role, or
null if the role is not defined in the descriptor. |
final public Iterator | getSecurityRoleNames() |
final public Element | getServlet(String theServletName) Returns the element that contains the definition of a specific servlet,
or null if a servlet of the specified name is not defined
in the descriptor. |
final public String | getServletInitParam(String theServletName, String theParamName) Returns the value of an initialization parameter of the specified
servlet. |
final public Iterator | getServletInitParamNames(String theServletName) Returns the names of the initialization parameters of the specified
servlet. |
final public Iterator | getServletMappings(String theServletName) Returns the URL-patterns that the specified servlet is mapped to in an
ordered list. |
final public Iterator | getServletNames() Returns the names of all servlets defined in the deployment descriptor. |
final public Iterator | getServletNamesForClass(String theClassName) Returns a list of names of servlets that are mapped to the specified
class. |
final public Iterator | getServletNamesForJspFile(String theJspFile) Returns a list of names of servlets that are mapped to the specified
JSP file. |
final public String | getServletRunAsRoleName(String theServletName) Returns the role name that the servlet is running as. |
final public WebXmlVersion | getVersion() Returns the servlet API version. |
final public boolean | hasContextParam(String theParamName) Returns whether a context param by the specified name is defined in the
deployment descriptor. |
final public boolean | hasFilter(String theFilterName) Returns whether a servlet filter by the specified name is defined in the
deployment descriptor. |
final public boolean | hasLoginConfig() Returns whether the descriptor has a login configuration. |
final public boolean | hasSecurityConstraint(String theUrlPattern) Returns whether a security constraint has been mapped to the specified
URL pattern. |
final public boolean | hasSecurityRole(String theRoleName) Returns whether a specific security role has been defined. |
final public boolean | hasServlet(String theServletName) Returns whether a servlet by the specified name is defined in the
deployment descriptor. |
final public void | replaceElement(WebXmlTag theTag, Element theElement) Replaces all elements of the specified tag with the provided element. |
final public void | setLoginConfig(String theAuthMethod, String theRealmName) Sets the login configuration. |