cn.dreampie.route.handler
类 Handler

java.lang.Object
  继承者 cn.dreampie.route.handler.Handler
直接已知子类:
CORSHandler, RouteHandler

public abstract class Handler
extends Object

Handler. You can config Handler in Config.configHandler() method, Handler can do anything under the resty route.


字段摘要
protected  Handler nextHandler
           
 
构造方法摘要
Handler()
           
 
方法摘要
abstract  void handle(HttpRequest request, HttpResponse response, boolean[] isHandled)
          Handle target
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

nextHandler

protected Handler nextHandler
构造方法详细信息

Handler

public Handler()
方法详细信息

handle

public abstract void handle(HttpRequest request,
                            HttpResponse response,
                            boolean[] isHandled)
Handle target

参数:
request - HttpServletRequest of this http request
response - HttpServletRequest of this http request
isHandled - RestyFilter will invoke doFilter() method if isHandled[0] == false, it is usually to tell Filter should handle the static resource.


Copyright © 2015. All rights reserved.