IT. Expert System.

Java Enterprise Edition (EE)

PreJsf2ExceptionHandlerFactory


javax.faces.webapp
Class PreJsf2ExceptionHandlerFactory

java.lang.Object
  javax.faces.context.ExceptionHandlerFactory
      javax.faces.webapp.PreJsf2ExceptionHandlerFactory
All Implemented Interfaces:
FacesWrapper<ExceptionHandlerFactory>
public class PreJsf2ExceptionHandlerFactory
extends ExceptionHandlerFactory

This ExceptionHandlerFactory instance produces JSF 1.2 compatible ExceptionHandler instances. The ExceptionHandler#handle method of the ExceptionHandler produced by this factory must meet the following requirements

  • Any exceptions thrown before or after phase execution will be logged and swallowed.

  • The implementation must examine the Exception within each of the unhandled exception events. If the Exception is an instance of UpdateModelException, extract the FacesMessage from the UpdateModelException. Log a SEVERE message to the log and queue the FacesMessage on the FacesContext, using the clientId of the source component in a call to FacesContext#addMessage(java.lang.String, javax.faces.application.FacesMessage)

Since:
2.0

Constructor Summary
PreJsf2ExceptionHandlerFactory()
           
 
Method Summary
 ExceptionHandler getExceptionHandler()
          

Create and return a A new ExceptionHandler instance.

 
Methods inherited from class javax.faces.context.ExceptionHandlerFactory
getWrapped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreJsf2ExceptionHandlerFactory

public PreJsf2ExceptionHandlerFactory()
Method Detail

getExceptionHandler

public ExceptionHandler getExceptionHandler()
Description copied from class: ExceptionHandlerFactory

Create and return a A new ExceptionHandler instance. The implementation must return an ExceptionHandler instance suitable for the environment. For example, in some cases it may be desirable for an ExceptionHandler to write error information to the response instead of throwing exceptions as in the case of Ajax applications.

Specified by:
getExceptionHandler in class ExceptionHandlerFactory
Returns:
a new ExceptionHandler that behaves in a fashion compatible with specifications prior to JavaServerFaces 1.2


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 237 / 158692590. Delta: 0.04814 с