|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.util.WebXmlUtil
public class WebXmlUtil
Contains utility methods to register or check for the existence of elements in web.xml.
Constructor Summary | |
---|---|
WebXmlUtil()
|
|
WebXmlUtil(InputStream inputStream)
Test-friendly constructor. |
Method Summary | |
---|---|
boolean |
areFilterDispatchersConfiguredProperly(String filterClass,
List mandatoryDispatchers,
List optionalDispatchers)
Deprecated. since 3.6.4, use checkFilterDispatchersConfiguration() |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebXmlUtil()
public WebXmlUtil(InputStream inputStream)
Method Detail |
---|
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 boolean areFilterDispatchersConfiguredProperly(String filterClass, List mandatoryDispatchers, List optionalDispatchers)
public int checkFilterDispatchersConfiguration(String filterClass, List mandatoryDispatchers, List optionalDispatchers)
public boolean isListenerRegistered(String deprecatedListenerClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |