org.jboss.seam.exception
Class RedirectHandler

java.lang.Object
  extended by org.jboss.seam.faces.Navigator
      extended by org.jboss.seam.exception.ExceptionHandler
          extended by org.jboss.seam.exception.RedirectHandler
Direct Known Subclasses:
AnnotationRedirectHandler, ConfigRedirectHandler

public abstract class RedirectHandler
extends ExceptionHandler

Base implementation of redirection exception handlers.

Author:
Gavin King

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.seam.exception.ExceptionHandler
ExceptionHandler.LogLevel
 
Constructor Summary
RedirectHandler()
           
 
Method Summary
protected abstract  String getMessage(Exception e)
           
protected abstract  javax.faces.application.FacesMessage.Severity getMessageSeverity(Exception e)
           
protected abstract  String getViewId(Exception e)
           
 void handle(Exception e)
           
protected abstract  boolean isEnd(Exception e)
           
 String toString()
           
 
Methods inherited from class org.jboss.seam.exception.ExceptionHandler
getLogLevel, isHandler, isLogEnabled, setLogEnabled, setLogLevel
 
Methods inherited from class org.jboss.seam.faces.Navigator
addFacesMessage, error, getDisplayMessage, redirect, redirect, redirectExternal, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RedirectHandler

public RedirectHandler()
Method Detail

getViewId

protected abstract String getViewId(Exception e)

getMessage

protected abstract String getMessage(Exception e)

isEnd

protected abstract boolean isEnd(Exception e)

getMessageSeverity

protected abstract javax.faces.application.FacesMessage.Severity getMessageSeverity(Exception e)

handle

public void handle(Exception e)
            throws Exception
Specified by:
handle in class ExceptionHandler
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object