Top Constructors Methods
org.apache.catalina.mbeans

public Class ContextMBean

extends BaseCatalinaMBean<Context>
Class Inheritance
Imports
javax.management.MBeanException, org.apache.catalina.Context, org.apache.tomcat.util.descriptor.web.ApplicationParameter, .ErrorPage, .FilterDef, .FilterMap, .SecurityConstraint

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

a string array with a representation of each parameter
findApplicationParameters
()

Return the set of application parameters for this application.

public String[]

Returns:

a string array with a representation of each security constraint
findConstraints
()

Return the security constraints for this web application.

public String

Returns:

a string representation of the error page
findErrorPage
(int
Error code to look up
errorCode
)

Return the error page entry for the specified HTTP error code, if any; otherwise return null.

public String

Returns:

a string representation of the error page
findErrorPage
(Throwable
Exception type to look up
exceptionType
)

Return the error page entry for the specified Java exception type, if any; otherwise return null.

public String[]

Returns:

a string array with a representation of each error page
findErrorPages
()

Return the set of defined error pages for all specified error codes and exception types.

public String

Returns:

a string representation of the filter definition
findFilterDef
(String
Filter name to look up
name
)

Return the filter definition for the specified filter name, if any; otherwise return null.

public String[]

Returns:

a string array with a representation of all the filter definitions
findFilterDefs
()

Return the set of defined filters for this Context.

public String[]

Returns:

a string array with a representation of all the filter mappings
findFilterMaps
()

Return the set of filter mappings for this Context.

Inherited from org.apache.catalina.mbeans.BaseCatalinaMBean:
doGetManagedResourcenewInstance

Constructor Detail

ContextMBeanback to summary
public ContextMBean()

Method Detail

findApplicationParametersback to summary
public String[] findApplicationParameters() throws MBeanException

Return the set of application parameters for this application.

Returns:String[]

a string array with a representation of each parameter

Exceptions
MBeanException:
propagated from the managed resource access
findConstraintsback to summary
public String[] findConstraints() throws MBeanException

Return the security constraints for this web application. If there are none, a zero-length array is returned.

Returns:String[]

a string array with a representation of each security constraint

Exceptions
MBeanException:
propagated from the managed resource access
findErrorPageback to summary
public String findErrorPage(int errorCode) throws MBeanException

Return the error page entry for the specified HTTP error code, if any; otherwise return null.

Parameters
errorCode:int

Error code to look up

Returns:String

a string representation of the error page

Exceptions
MBeanException:
propagated from the managed resource access
findErrorPageback to summary
public String findErrorPage(Throwable exceptionType) throws MBeanException

Return the error page entry for the specified Java exception type, if any; otherwise return null.

Parameters
exceptionType:Throwable

Exception type to look up

Returns:String

a string representation of the error page

Exceptions
MBeanException:
propagated from the managed resource access
findErrorPagesback to summary
public String[] findErrorPages() throws MBeanException

Return the set of defined error pages for all specified error codes and exception types.

Returns:String[]

a string array with a representation of each error page

Exceptions
MBeanException:
propagated from the managed resource access
findFilterDefback to summary
public String findFilterDef(String name) throws MBeanException

Return the filter definition for the specified filter name, if any; otherwise return null.

Parameters
name:String

Filter name to look up

Returns:String

a string representation of the filter definition

Exceptions
MBeanException:
propagated from the managed resource access
findFilterDefsback to summary
public String[] findFilterDefs() throws MBeanException

Return the set of defined filters for this Context.

Returns:String[]

a string array with a representation of all the filter definitions

Exceptions
MBeanException:
propagated from the managed resource access
findFilterMapsback to summary
public String[] findFilterMaps() throws MBeanException

Return the set of filter mappings for this Context.

Returns:String[]

a string array with a representation of all the filter mappings

Exceptions
MBeanException:
propagated from the managed resource access