Package com.adobe.acs.commons.wcm
Interface ComponentErrorHandler
-
@ProviderType public interface ComponentErrorHandler
-
-
Field Summary
Fields Modifier and Type Field Description static StringSUPPRESS_ATTRWhen attribute is set on the Request causes Component Error Handler implementation to be skipped.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidallowComponentErrorHandling(org.apache.sling.api.SlingHttpServletRequest request)Allow component error handling for the Request.voidsuppressComponentErrorHandling(org.apache.sling.api.SlingHttpServletRequest request)Suppress component error handling for the Request.
-
-
-
Field Detail
-
SUPPRESS_ATTR
static final String SUPPRESS_ATTR
When attribute is set on the Request causes Component Error Handler implementation to be skipped. Ex: request.setAttribute(SUPPRESS_ATTR, true);- See Also:
- Constant Field Values
-
-
Method Detail
-
suppressComponentErrorHandling
void suppressComponentErrorHandling(org.apache.sling.api.SlingHttpServletRequest request)
Suppress component error handling for the Request.- Parameters:
request- Sling Request object
-
allowComponentErrorHandling
void allowComponentErrorHandling(org.apache.sling.api.SlingHttpServletRequest request)
Allow component error handling for the Request. Only useful after suppressComponentErrorHandling has been previously called.- Parameters:
request- Sling Request obj
-
-