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, setResponseWriter
public void handle(org.craftercms.commons.http.RequestContext context, AccessDeniedException e) throws SecurityProviderException, IOException
AccessDeniedHandler
handle
in interface AccessDeniedHandler
context
- the request contexte
- the exception with the reason of the access denySecurityProviderException
IOException
Copyright © 2023 CrafterCMS. All rights reserved.