org.primefaces.extensions.component.ajaxerrorhandler
Class AjaxExceptionHandler

java.lang.Object
  extended by javax.faces.context.ExceptionHandler
      extended by javax.faces.context.ExceptionHandlerWrapper
          extended by org.primefaces.extensions.component.ajaxerrorhandler.AjaxExceptionHandler
All Implemented Interfaces:
java.util.EventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListener, javax.faces.FacesWrapper<javax.faces.context.ExceptionHandler>

public class AjaxExceptionHandler
extends javax.faces.context.ExceptionHandlerWrapper

ExceptionHandlerWrapper which writes a custom XML response for the AjaxErrorHandler component.

Since:
0.5
Version:
$Revision$
Author:
Pavol Slany / last modified by $Author$

Constructor Summary
AjaxExceptionHandler(javax.faces.context.ExceptionHandler wrapped)
          Construct a new AjaxExceptionHandler around the given wrapped ExceptionHandler.
 
Method Summary
protected  java.lang.String getHostname()
           
 javax.faces.context.ExceptionHandler getWrapped()
           
 void handle()
           
 
Methods inherited from class javax.faces.context.ExceptionHandlerWrapper
getHandledExceptionQueuedEvent, getHandledExceptionQueuedEvents, getRootCause, getUnhandledExceptionQueuedEvents, isListenerForSource, processEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxExceptionHandler

public AjaxExceptionHandler(javax.faces.context.ExceptionHandler wrapped)
Construct a new AjaxExceptionHandler around the given wrapped ExceptionHandler.

Parameters:
wrapped - The wrapped ExceptionHandler.
Method Detail

getWrapped

public javax.faces.context.ExceptionHandler getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.faces.context.ExceptionHandler>
Overrides:
getWrapped in class javax.faces.context.ExceptionHandlerWrapper

handle

public void handle()
            throws javax.faces.FacesException
Overrides:
handle in class javax.faces.context.ExceptionHandlerWrapper
Throws:
javax.faces.FacesException

getHostname

protected java.lang.String getHostname()
                                throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException


Copyright © 2011-2013. All Rights Reserved.