static void |
WebXmlUtils.addContextParam(WebXml webXml,
String name,
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,
String filterName,
String filterClass) |
Add a filter to the descriptor.
|
static void |
WebXmlUtils.addFilter(WebXml webXml,
Filter filter) |
|
static void |
WebXmlUtils.addFilterDispatcher(WebXml webXml,
String theFilterName,
String theDispatcher) |
|
static void |
WebXmlUtils.addFilterInitParam(WebXml webXml,
String name,
String paramName,
String paramValue) |
Add an init param to a filter.
|
static void |
WebXmlUtils.addFilterMapping(WebXml webXml,
String theFilterName,
String theUrlPattern) |
|
static void |
WebXmlUtils.addJspFile(WebXml webXml,
String theServletName,
String theJspFile) |
Add a JSP file.
|
static void |
WebXmlUtils.addSecurityConstraint(WebXml webXml,
String theWebResourceName,
String theUrlPattern,
List<String> theRoles) |
Add a security constraint.
|
static void |
WebXmlUtils.addSecurityRole(WebXml webXml,
String theRoleName) |
|
static void |
WebXmlUtils.addServlet(WebXml webXml,
String servletName,
String servletClass) |
Add a servlet to the descriptor.
|
static void |
WebXmlUtils.addServlet(WebXml webXml,
Servlet element) |
Add a servlet to the web xml.
|
static void |
WebXmlUtils.addServletInitParam(WebXml webXml,
String theServletName,
String name,
String value) |
Add an init param to a servlet.
|
static void |
WebXmlUtils.addServletMapping(WebXml webXml,
String theServletName,
String theUrlPattern) |
|
static void |
WebXmlUtils.addServletRunAsRoleName(WebXml webXml,
String theServletName,
String theRoleName) |
|
static org.jdom2.Element |
WebXmlUtils.getContextParam(WebXml webXml,
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,
String filterName) |
|
static List<String> |
WebXmlUtils.getFilterDispatchers(WebXml webXml,
String theFilterName) |
Returns the dispatchers that the specified filter is mapped to in an ordered list.
|
static String |
WebXmlUtils.getFilterInitParam(WebXml theWebXml,
String filterName,
String paramName) |
|
static List<String> |
WebXmlUtils.getFilterInitParamNames(WebXml webXml,
String name) |
Get the init parameter names for a filter.
|
static List<FilterMapping> |
WebXmlUtils.getFilterMappingElements(WebXml webXml,
String theFilterName) |
Returns the filter mappings that the specified filter is mapped to in an ordered list.
|
static List<String> |
WebXmlUtils.getFilterMappings(WebXml webXml,
String theFilterName) |
Returns the URL-patterns that the specified filter is mapped to in an ordered list.
|
static List<String> |
WebXmlUtils.getFilterNames(WebXml webXml) |
|
static List<String> |
WebXmlUtils.getFilterNamesForClass(WebXml webXml,
String className) |
Returns a list of names of filters that are mapped to the specified class.
|
static String |
WebXmlUtils.getLoginConfigAuthMethod(WebXml webXml) |
Get the login config authorization method.
|
static SecurityConstraint |
WebXmlUtils.getSecurityConstraint(WebXml webXml,
String theUrlPattern) |
Get a security constraint by URL.
|
static org.jdom2.Element |
WebXmlUtils.getSecurityRole(WebXml webXml,
String theRoleName) |
Get the security role by name.
|
static List<String> |
WebXmlUtils.getSecurityRoleNames(WebXml webXml) |
Get the security role names.
|
static Servlet |
WebXmlUtils.getServlet(WebXml theWebXml,
String servletName) |
|
static String |
WebXmlUtils.getServletInitParam(WebXml theWebXml,
String servletName,
String paramName) |
|
static List<String> |
WebXmlUtils.getServletInitParamNames(WebXml webXml,
String theServletName) |
Get the names of all the servlet init parameters.
|
static List<ServletMapping> |
WebXmlUtils.getServletMappingElements(WebXml webXml,
String theServletName) |
Returns the servlet mappings that the specified servlet is mapped to in an ordered list.
|
static List<String> |
WebXmlUtils.getServletMappings(WebXml webXml,
String theServletName) |
Get the servlet mappings to the named servlet.
|
static List<String> |
WebXmlUtils.getServletNames(WebXml webXml) |
Get a list of the servlet names in the web xml.
|
static List<String> |
WebXmlUtils.getServletNamesForClass(WebXml webXml,
String className) |
Get the names that this servlet uses.
|
static List<String> |
WebXmlUtils.getServletNamesForJspFile(WebXml webXml,
String theJspFile) |
Returns a list of names of servlets that are mapped to the specified JSP file.
|
static String |
WebXmlUtils.getServletRunAsRoleName(WebXml webXml,
String theServletName) |
For a named servlet, return the run-as role name.
|
static boolean |
WebXmlUtils.hasContextParam(WebXml webXml,
String theParamName) |
Returns whether a context param by the specified name is defined in the deployment
descriptor.
|
static boolean |
WebXmlUtils.hasFilter(WebXml webXml,
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,
String theUrlPattern) |
Does the descriptor have a security constraint for a URL?
|
static boolean |
WebXmlUtils.hasSecurityRole(WebXml webXml,
String theRoleName) |
Does the role have a security definition?
|
static boolean |
WebXmlUtils.hasServlet(WebXml webXml,
String servletName) |
Does the web xml have a named servlet.
|
static void |
WebXmlUtils.setLoginConfig(WebXml webXml,
String theAuthMethod,
String theRealmName) |
Set the login config.
|