This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/**
|
||||
* 提供RedKale服务器的启动、初始化和加载功能
|
||||
* 提供Redkale服务器的启动、初始化和加载功能
|
||||
*/
|
||||
package org.redkale.boot;
|
||||
|
||||
@@ -17,12 +17,12 @@ import org.redkale.util.ByteArray;
|
||||
|
||||
/**
|
||||
* Http请求包 与javax.servlet.http.HttpServletRequest 基本类似。 <br>
|
||||
* 同时提供json的解析接口: public Object getJsonParameter(Class clazz, String name) <br>
|
||||
* RedKale提倡带简单的参数的GET请求采用类似REST风格, 因此提供了 getRequstURIPath 系列接口。 <br>
|
||||
* 同时提供json的解析接口: public Object getJsonParameter(Type type, String name) <br>
|
||||
* Redkale提倡带简单的参数的GET请求采用类似REST风格, 因此提供了 getRequstURIPath 系列接口。 <br>
|
||||
* 例如简单的翻页查询 <br>
|
||||
* /pipes/record/query/offset:0/limit:20 <br>
|
||||
* 获取页号: int offset = request.getRequstURIPath("offset:", 0); <br>
|
||||
* 获取行数: int limit = request.getRequstURIPath("limit:", 10);
|
||||
* /pipes/record/query/offset:0/limit:20 <br>
|
||||
* 获取页号: int offset = request.getRequstURIPath("offset:", 0); <br>
|
||||
* 获取行数: int limit = request.getRequstURIPath("limit:", 10);
|
||||
* <p>
|
||||
* 详情见: http://redkale.org
|
||||
*
|
||||
|
||||
@@ -36,7 +36,7 @@ public class HttpResourceServlet extends HttpServlet {
|
||||
|
||||
public WatchThread(File root) throws IOException {
|
||||
this.root = root;
|
||||
this.setName("Servlet-ResourceWatch-Thread");
|
||||
this.setName("HttpResourceServlet-Watch-Thread");
|
||||
this.setDaemon(true);
|
||||
this.watcher = this.root.toPath().getFileSystem().newWatchService();
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.redkale.util.*;
|
||||
/**
|
||||
* Http响应包 与javax.servlet.http.HttpServletResponse 基本类似。
|
||||
* 同时提供发送json的系列接口: public void finishJson(Type type, Object obj)
|
||||
* RedKale提倡http+json的接口风格, 所以主要输出的数据格式为json, 同时提供异步接口。
|
||||
* Redkale提倡http+json的接口风格, 所以主要输出的数据格式为json, 同时提供异步接口。
|
||||
* <p>
|
||||
* 详情见: http://redkale.org
|
||||
*
|
||||
|
||||
@@ -18,14 +18,4 @@ public abstract class HttpServlet extends Servlet<HttpContext, HttpRequest, Http
|
||||
|
||||
String _prefix = ""; //当前HttpServlet的path前缀
|
||||
|
||||
@Override
|
||||
public final boolean equals(Object obj) {
|
||||
return this == obj;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int hashCode() {
|
||||
return super.hashCode();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/**
|
||||
* 提供RedKale服务的监控、动态部署、数据收集功能
|
||||
* 提供Redkale服务的监控、动态部署、数据收集功能
|
||||
*/
|
||||
package org.redkale.watch;
|
||||
|
||||
Reference in New Issue
Block a user