cn.dreampie.route.holder
类 ExceptionHolder

java.lang.Object
  继承者 cn.dreampie.route.holder.ExceptionHolder
直接已知子类:
DefaultExceptionHolder

public abstract class ExceptionHolder
extends Object

Created by Dreampie on 15/4/27.


字段摘要
static ExceptionHolder HOLDER
           
 
构造方法摘要
ExceptionHolder()
           
 
方法摘要
static void addFoward(HttpStatus status, String url)
           
static void addRedirect(HttpStatus status, String url)
           
protected static void go(HttpResponse response, HttpStatus status, boolean[] isHandled)
          捕获异常 并就行跳转
abstract  void hold(HttpRequest request, HttpResponse response, Exception exception, boolean[] isHandled)
          处理异常
static void setDefaultForward(String url)
           
static void setDefaultRedirect(String url)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

HOLDER

public static final ExceptionHolder HOLDER
构造方法详细信息

ExceptionHolder

public ExceptionHolder()
方法详细信息

setDefaultForward

public static void setDefaultForward(String url)

setDefaultRedirect

public static void setDefaultRedirect(String url)

addFoward

public static void addFoward(HttpStatus status,
                             String url)

addRedirect

public static void addRedirect(HttpStatus status,
                               String url)

go

protected static void go(HttpResponse response,
                         HttpStatus status,
                         boolean[] isHandled)
捕获异常 并就行跳转

参数:
response - response
status - status
isHandled - isHandled
抛出:
javax.servlet.ServletException
IOException

hold

public abstract void hold(HttpRequest request,
                          HttpResponse response,
                          Exception exception,
                          boolean[] isHandled)
处理异常

参数:
request -
response -
exception -
isHandled -


Copyright © 2015. All rights reserved.