org.redkale.net.http

## 类 RestHttpServlet<T>

- java.lang.Object
- - org.redkale.net.Servlet<HttpContext,HttpRequest,HttpResponse>
  - - org.redkale.net.http.HttpServlet
    - - org.redkale.net.http.HttpBaseServlet
      - - org.redkale.net.http.RestHttpServlet<T>

- 类型参数:
    `T` - 当前用户对象类型
  直接已知子类:
    DefaultRestServlet

      public abstract class RestHttpServlet<T>
      extends HttpBaseServlet

  详情见: https://redkale.org

- - ### 嵌套类概要

    - ### 从类继承的嵌套类/接口 org.redkale.net.http.HttpBaseServlet

      `HttpBaseServlet.AuthIgnore, HttpBaseServlet.HttpCacheable, HttpBaseServlet.ParamSourceType, HttpBaseServlet.WebAction, HttpBaseServlet.WebParam, HttpBaseServlet.WebParams`

  - ### 字段概要

    - ### 从类继承的字段 org.redkale.net.http.HttpBaseServlet

      `RET_METHOD_ERROR, RET_SERVER_ERROR`

  - ### 构造器概要

    构造器
    构造器和说明
    `RestHttpServlet()`

  - ### 方法概要

    所有方法 实例方法 抽象方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected abstract T` | `currentUser(HttpRequest req)`
    `protected void` | `finishJson(HttpResponse response, RestOutput output)`
    `protected void` | `finishJsResult(HttpResponse response, java.lang.String var, RestOutput output)`

    - ### 从类继承的方法 org.redkale.net.http.HttpBaseServlet

      `_prefix, addHeader, authenticate, execute, postDestroy, preExecute, preInit, setHeader`

    - ### 从类继承的方法 org.redkale.net.Servlet

      `destroy, init`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### RestHttpServlet

          public RestHttpServlet()

  - ### 方法详细资料

    - #### currentUser

          protected abstract T currentUser(HttpRequest req)
                                    throws java.io.IOException

      抛出:
        `java.io.IOException`

    - #### finishJson

          protected void finishJson(HttpResponse response,
                                    RestOutput output)
                             throws java.io.IOException

      抛出:
        `java.io.IOException`

    - #### finishJsResult

          protected void finishJsResult(HttpResponse response,
                                        java.lang.String var,
                                        RestOutput output)
                                 throws java.io.IOException

      抛出:
        `java.io.IOException`