public class WebXmlUtil extends Object
Constructor and Description |
---|
WebXmlUtil() |
WebXmlUtil(InputStream inputStream)
Test-friendly constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
checkFilterDispatchersConfiguration(String filterClass,
List mandatoryDispatchers,
List optionalDispatchers)
Returns:
+1 if all mandatory dispatchers are present and no additional unsupported dispatcher is present, or this filter class isn't registered.
0 if all mandatory dispatchers are present but additional unsupported dispatchers are present
|
Collection |
getServletMappings(String servletName) |
boolean |
isFilterRegistered(String filterClass) |
boolean |
isListenerRegistered(String deprecatedListenerClass) |
boolean |
isServletMappingRegistered(String servletName) |
boolean |
isServletMappingRegistered(String servletName,
String urlPattern) |
boolean |
isServletOrMappingRegistered(String servletName) |
boolean |
isServletRegistered(String servletName) |
public WebXmlUtil()
public WebXmlUtil(InputStream inputStream)
public boolean isServletOrMappingRegistered(String servletName)
public boolean isServletRegistered(String servletName)
public boolean isServletMappingRegistered(String servletName)
public boolean isServletMappingRegistered(String servletName, String urlPattern)
public Collection getServletMappings(String servletName)
public boolean isFilterRegistered(String filterClass)
public int checkFilterDispatchersConfiguration(String filterClass, List mandatoryDispatchers, List optionalDispatchers)
public boolean isListenerRegistered(String deprecatedListenerClass)
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.