public class ContextMBean extends BaseCatalinaMBean<Context>
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
Constructor and Description |
---|
ContextMBean() |
Modifier and Type | Method and Description |
---|---|
String[] |
findApplicationParameters()
Return the set of application parameters for this application.
|
String[] |
findConstraints()
Return the security constraints for this web application.
|
String |
findErrorPage(int errorCode)
Return the error page entry for the specified HTTP error code,
if any; otherwise return
null . |
String |
findErrorPage(String exceptionType)
Deprecated.
Unused. Will be removed in Tomcat 10.
Use
findErrorPage(Throwable) instead. |
String |
findErrorPage(Throwable exceptionType)
Return the error page entry for the specified Java exception type,
if any; otherwise return
null . |
String[] |
findErrorPages()
Return the set of defined error pages for all specified error codes
and exception types.
|
String |
findFilterDef(String name)
Return the filter definition for the specified filter name, if any;
otherwise return
null . |
String[] |
findFilterDefs()
Return the set of defined filters for this Context.
|
String[] |
findFilterMaps()
Return the set of filter mappings for this Context.
|
doGetManagedResource, newInstance
addAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, invoke, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedBean, setManagedResource, toString
public String[] findApplicationParameters() throws MBeanException
MBeanException
- propagated from the managed resource accesspublic String[] findConstraints() throws MBeanException
MBeanException
- propagated from the managed resource accesspublic String findErrorPage(int errorCode) throws MBeanException
null
.errorCode
- Error code to look upMBeanException
- propagated from the managed resource access@Deprecated public String findErrorPage(String exceptionType) throws MBeanException
findErrorPage(Throwable)
instead.null
.exceptionType
- Exception type to look upMBeanException
- propagated from the managed resource accesspublic String findErrorPage(Throwable exceptionType) throws MBeanException
null
.exceptionType
- Exception type to look upMBeanException
- propagated from the managed resource accesspublic String[] findErrorPages() throws MBeanException
MBeanException
- propagated from the managed resource accesspublic String findFilterDef(String name) throws MBeanException
null
.name
- Filter name to look upMBeanException
- propagated from the managed resource accesspublic String[] findFilterDefs() throws MBeanException
MBeanException
- propagated from the managed resource accesspublic String[] findFilterMaps() throws MBeanException
MBeanException
- propagated from the managed resource accessCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.