Class ContextMBean

  • All Implemented Interfaces:
    javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster

    public class ContextMBean
    extends BaseCatalinaMBean<Context>
    • Constructor Detail

      • ContextMBean

        public ContextMBean()
    • Method Detail

      • findApplicationParameters

        public java.lang.String[] findApplicationParameters()
                                                     throws javax.management.MBeanException
        Return the set of application parameters for this application.
        Returns:
        a string array with a representation of each parameter
        Throws:
        javax.management.MBeanException - propagated from the managed resource access
      • findConstraints

        public java.lang.String[] findConstraints()
                                           throws javax.management.MBeanException
        Return the security constraints for this web application. If there are none, a zero-length array is returned.
        Returns:
        a string array with a representation of each security constraint
        Throws:
        javax.management.MBeanException - propagated from the managed resource access
      • findErrorPage

        public java.lang.String findErrorPage​(int errorCode)
                                       throws javax.management.MBeanException
        Return the error page entry for the specified HTTP error code, if any; otherwise return null.
        Parameters:
        errorCode - Error code to look up
        Returns:
        a string representation of the error page
        Throws:
        javax.management.MBeanException - propagated from the managed resource access
      • findErrorPage

        public java.lang.String findErrorPage​(java.lang.Throwable exceptionType)
                                       throws javax.management.MBeanException
        Return the error page entry for the specified Java exception type, if any; otherwise return null.
        Parameters:
        exceptionType - Exception type to look up
        Returns:
        a string representation of the error page
        Throws:
        javax.management.MBeanException - propagated from the managed resource access
      • findErrorPages

        public java.lang.String[] findErrorPages()
                                          throws javax.management.MBeanException
        Return the set of defined error pages for all specified error codes and exception types.
        Returns:
        a string array with a representation of each error page
        Throws:
        javax.management.MBeanException - propagated from the managed resource access
      • findFilterDef

        public java.lang.String findFilterDef​(java.lang.String name)
                                       throws javax.management.MBeanException
        Return the filter definition for the specified filter name, if any; otherwise return null.
        Parameters:
        name - Filter name to look up
        Returns:
        a string representation of the filter definition
        Throws:
        javax.management.MBeanException - propagated from the managed resource access
      • findFilterDefs

        public java.lang.String[] findFilterDefs()
                                          throws javax.management.MBeanException
        Return the set of defined filters for this Context.
        Returns:
        a string array with a representation of all the filter definitions
        Throws:
        javax.management.MBeanException - propagated from the managed resource access
      • findFilterMaps

        public java.lang.String[] findFilterMaps()
                                          throws javax.management.MBeanException
        Return the set of filter mappings for this Context.
        Returns:
        a string array with a representation of all the filter mappings
        Throws:
        javax.management.MBeanException - propagated from the managed resource access