This commit is contained in:
Redkale
2016-10-10 14:20:49 +08:00
parent 93fef97c56
commit 8901dd9a07
6 changed files with 9 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
/** /**
* 提供RedKale服务器的启动、初始化和加载功能 * 提供Redkale服务器的启动、初始化和加载功能
*/ */
package org.redkale.boot; package org.redkale.boot;

View File

@@ -17,8 +17,8 @@ import org.redkale.util.ByteArray;
/** /**
* Http请求包 与javax.servlet.http.HttpServletRequest 基本类似。 <br> * Http请求包 与javax.servlet.http.HttpServletRequest 基本类似。 <br>
* 同时提供json的解析接口: public Object getJsonParameter(Class clazz, String name) <br> * 同时提供json的解析接口: public Object getJsonParameter(Type type, String name) <br>
* RedKale提倡带简单的参数的GET请求采用类似REST风格, 因此提供了 getRequstURIPath 系列接口。 <br> * Redkale提倡带简单的参数的GET请求采用类似REST风格, 因此提供了 getRequstURIPath 系列接口。 <br>
* 例如简单的翻页查询 <br> * 例如简单的翻页查询 <br>
* /pipes/record/query/offset:0/limit:20 <br> * /pipes/record/query/offset:0/limit:20 <br>
* 获取页号: int offset = request.getRequstURIPath("offset:", 0); <br> * 获取页号: int offset = request.getRequstURIPath("offset:", 0); <br>

View File

@@ -36,7 +36,7 @@ public class HttpResourceServlet extends HttpServlet {
public WatchThread(File root) throws IOException { public WatchThread(File root) throws IOException {
this.root = root; this.root = root;
this.setName("Servlet-ResourceWatch-Thread"); this.setName("HttpResourceServlet-Watch-Thread");
this.setDaemon(true); this.setDaemon(true);
this.watcher = this.root.toPath().getFileSystem().newWatchService(); this.watcher = this.root.toPath().getFileSystem().newWatchService();
} }

View File

@@ -23,7 +23,7 @@ import org.redkale.util.*;
/** /**
* Http响应包 与javax.servlet.http.HttpServletResponse 基本类似。 * Http响应包 与javax.servlet.http.HttpServletResponse 基本类似。
* 同时提供发送json的系列接口: public void finishJson(Type type, Object obj) * 同时提供发送json的系列接口: public void finishJson(Type type, Object obj)
* RedKale提倡http+json的接口风格 所以主要输出的数据格式为json 同时提供异步接口。 * Redkale提倡http+json的接口风格 所以主要输出的数据格式为json 同时提供异步接口。
* <p> * <p>
* 详情见: http://redkale.org * 详情见: http://redkale.org
* *

View File

@@ -18,14 +18,4 @@ public abstract class HttpServlet extends Servlet<HttpContext, HttpRequest, Http
String _prefix = ""; //当前HttpServlet的path前缀 String _prefix = ""; //当前HttpServlet的path前缀
@Override
public final boolean equals(Object obj) {
return this == obj;
}
@Override
public final int hashCode() {
return super.hashCode();
}
} }

View File

@@ -1,4 +1,4 @@
/** /**
* 提供RedKale服务的监控、动态部署、数据收集功能 * 提供Redkale服务的监控、动态部署、数据收集功能
*/ */
package org.redkale.watch; package org.redkale.watch;