public class RestAccessDeniedHandler extends AbstractRestHandlerBase implements AccessDeniedHandler
AccessDeniedHandler for REST based applications,
which returns a 403 FORBIDDEN status with the access denied exception message.responseWriter| Constructor and Description |
|---|
RestAccessDeniedHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(org.craftercms.commons.http.RequestContext context,
AccessDeniedException e)
Handles the request after access to a resource is denied for a user.
|
sendErrorMessage, sendMessage, sendObject, setResponseWriterpublic void handle(org.craftercms.commons.http.RequestContext context,
AccessDeniedException e)
throws SecurityProviderException,
IOException
AccessDeniedHandlerhandle in interface AccessDeniedHandlercontext - the request contexte - the exception with the reason of the access denySecurityProviderExceptionIOExceptionCopyright © 2023 CrafterCMS. All rights reserved.