Package com.webmethods.portal.framework
Interface IErrorManager
- All Superinterfaces:
IComponent
,IComponentProvider
,IInitializable
,IURIResolver
Handles exception handling logic for the PortalServlet
-
Field Summary
Fields inherited from interface com.webmethods.portal.system.IComponentProvider
ATTR_APP_NAME, ATTR_BEG_QUERY, ATTR_END_QUERY, ATTR_MID_QUERY, BIZPOLICY_MANAGER, CACHE_PROVIDER, COMMAND_PROVIDER, COMPONENTS_QUERY, INSTALL_PROVIDER, MECH_PROVIDER, METACONTEXT_PROVIDER, PHASE_PROVIDER, POLICY_PROVIDER, SEARCH_PROVIDER
-
Method Summary
Modifier and TypeMethodDescriptiongetExceptionBean
(IContext context) Get the exceptionBean for the request.void
handleException
(HttpServletRequest request, HttpServletResponse response, Throwable t) ManagesExceptionBean
s that might occur during interaction with thePortalServlet
It does this by invoking theIDispatchManager.handleError(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, com.webmethods.portal.framework.error.IExceptionBean)
with the appropriate information This will also set the appropriate Http Response Codesboolean
hasExceptionBean
(IContext context) returns true if there is an exceptionbeanvoid
removeExceptionBean
(IContext context) Remove the exception bean from the request object.Methods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.IComponentProvider
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
Methods inherited from interface com.webmethods.portal.system.IURIResolver
acquireURI, acquireURI
-
Method Details
-
handleException
ManagesExceptionBean
s that might occur during interaction with thePortalServlet
It does this by invoking theIDispatchManager.handleError(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, com.webmethods.portal.framework.error.IExceptionBean)
with the appropriate information This will also set the appropriate Http Response Codes- Parameters:
request
-response
-t
-
-
hasExceptionBean
returns true if there is an exceptionbean- Returns:
-
getExceptionBean
Get the exceptionBean for the request. Wraps the exception inside of anExceptionBean
object. The exception bean is given the ID ofIConstants.EXCEPTION_BEAN_ID
. If an exception bean already exists on the request, it is overwritten After retrieving the exceptionBean you should callExceptionBean.setException(java.lang.Exception)
- Parameters:
context
- the Context to set the exception bean onto- See Also:
-
removeExceptionBean
Remove the exception bean from the request object.- Parameters:
context
- the Context to set the exception bean onto- See Also:
-