Package org.apache.myfaces.context
Class SwitchAjaxExceptionHandlerWrapperImpl
- java.lang.Object
- 
- jakarta.faces.context.ExceptionHandler
- 
- jakarta.faces.context.ExceptionHandlerWrapper
- 
- org.apache.myfaces.context.SwitchAjaxExceptionHandlerWrapperImpl
 
 
 
- 
- All Implemented Interfaces:
- FacesListener,- SystemEventListener,- FacesWrapper<ExceptionHandler>,- EventListener
 
 public class SwitchAjaxExceptionHandlerWrapperImpl extends ExceptionHandlerWrapper This wrapper is a switch to choose in a lazy way between ajax and normal exceptionHandler wrapping, because FacesContext is initialized after ExceptionHandler, so it is not safe to get it when ExceptionHandlerFactory.getExceptionHandler() is called.
- 
- 
Constructor SummaryConstructors Constructor Description SwitchAjaxExceptionHandlerWrapperImpl(ExceptionHandler requestExceptionHandler, ExceptionHandler ajaxExceptionHandler)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptionHandlergetWrapped()protected booleanisAjaxRequest()protected booleanisAjaxRequest(FacesContext facesContext)protected booleanisAjaxRequest(SystemEvent exceptionQueuedEvent)voidprocessEvent(SystemEvent exceptionQueuedEvent)- 
Methods inherited from class jakarta.faces.context.ExceptionHandlerWrappergetHandledExceptionQueuedEvent, getHandledExceptionQueuedEvents, getRootCause, getUnhandledExceptionQueuedEvents, handle, isListenerForSource
 
- 
 
- 
- 
- 
Constructor Detail- 
SwitchAjaxExceptionHandlerWrapperImplpublic SwitchAjaxExceptionHandlerWrapperImpl(ExceptionHandler requestExceptionHandler, ExceptionHandler ajaxExceptionHandler) 
 
- 
 - 
Method Detail- 
processEventpublic void processEvent(SystemEvent exceptionQueuedEvent) throws AbortProcessingException - Specified by:
- processEventin interface- SystemEventListener
- Overrides:
- processEventin class- ExceptionHandlerWrapper
- Throws:
- AbortProcessingException
 
 - 
isAjaxRequestprotected boolean isAjaxRequest(SystemEvent exceptionQueuedEvent) 
 - 
isAjaxRequestprotected boolean isAjaxRequest(FacesContext facesContext) 
 - 
isAjaxRequestprotected boolean isAjaxRequest() 
 - 
getWrappedpublic ExceptionHandler getWrapped() - Specified by:
- getWrappedin interface- FacesWrapper<ExceptionHandler>
- Overrides:
- getWrappedin class- ExceptionHandlerWrapper
 
 
- 
 
-