Class SecuritySpringExceptionHandlerServiceFactory
java.lang.Object
net.officefloor.spring.starter.rest.security.SecuritySpringExceptionHandlerServiceFactory
- All Implemented Interfaces:
ServiceFactory<SpringExceptionHandler>,SpringExceptionHandler,SpringExceptionHandlerServiceFactory
public class SecuritySpringExceptionHandlerServiceFactory
extends Object
implements SpringExceptionHandlerServiceFactory, SpringExceptionHandler
SpringExceptionHandlerServiceFactory for Spring Security.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMay not be on class path, so must dynamically load. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateService(ServiceContext context) Creates the service.booleanhandle(Throwable exception, SpringServerHttpConnection connection) Handles theExceptionfromDispatcherServlet.
-
Field Details
-
SPRING_SECURITY_EXCEPTION_HANDLER_CLASS_NAME
May not be on class path, so must dynamically load.- See Also:
-
-
Constructor Details
-
SecuritySpringExceptionHandlerServiceFactory
public SecuritySpringExceptionHandlerServiceFactory()
-
-
Method Details
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<SpringExceptionHandler>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-
handle
Description copied from interface:SpringExceptionHandlerHandles theExceptionfromDispatcherServlet.- Specified by:
handlein interfaceSpringExceptionHandler- Parameters:
exception-ThrowablefromDispatcherServlet.connection-SpringServerHttpConnection.- Returns:
trueif handled.- Throws:
Exception- If fails to handle.
-