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.
| 从类 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 - responsestatus - statusisHandled - 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.