From dbca25cd54c8e12a6a2e976f55817a3c21f61b1a Mon Sep 17 00:00:00 2001 From: Redkale <8730487+redkale@users.noreply.github.com> Date: Tue, 7 Jan 2020 16:29:38 +0800 Subject: [PATCH] --- src/org/redkale/net/http/HttpRequest.java | 36 +++++++++++------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/org/redkale/net/http/HttpRequest.java b/src/org/redkale/net/http/HttpRequest.java index 8d4432ea4..cf8005714 100644 --- a/src/org/redkale/net/http/HttpRequest.java +++ b/src/org/redkale/net/http/HttpRequest.java @@ -24,7 +24,7 @@ import org.redkale.util.AnyValue.DefaultAnyValue; * 同时提供json的解析接口: public Object getJsonParameter(Type type, String name)
* Redkale提倡带简单的参数的GET请求采用类似REST风格, 因此提供了 getRequstURIPath 系列接口。
* 例如简单的翻页查询
- * /pipes/record/query/offset:0/limit:20
+ * /pipes/user/query/offset:0/limit:20
* 获取页号: int offset = request.getRequstURIPath("offset:", 0);
* 获取行数: int limit = request.getRequstURIPath("limit:", 10);
*

@@ -700,7 +700,7 @@ public class HttpRequest extends Request { /** * 获取请求URL最后的一个/后面的部分的short值
- * 例如请求URL /pipes/record/query/2
+ * 例如请求URL /pipes/user/query/2
* 获取type参数: short type = request.getRequstURILastPath((short)0); //type = 2 * * @param defvalue 默认short值 @@ -719,7 +719,7 @@ public class HttpRequest extends Request { /** * 获取请求URL最后的一个/后面的部分的short值
- * 例如请求URL /pipes/record/query/2
+ * 例如请求URL /pipes/user/query/2
* 获取type参数: short type = request.getRequstURILastPath(16, (short)0); //type = 2 * * @param radix 进制数 @@ -739,7 +739,7 @@ public class HttpRequest extends Request { /** * 获取请求URL最后的一个/后面的部分的int值
- * 例如请求URL /pipes/record/query/2
+ * 例如请求URL /pipes/user/query/2
* 获取type参数: int type = request.getRequstURILastPath(0); //type = 2 * * @param defvalue 默认int值 @@ -757,7 +757,7 @@ public class HttpRequest extends Request { /** * 获取请求URL最后的一个/后面的部分的int值
- * 例如请求URL /pipes/record/query/2
+ * 例如请求URL /pipes/user/query/2
* 获取type参数: int type = request.getRequstURILastPath(16, 0); //type = 2 * * @param radix 进制数 @@ -776,7 +776,7 @@ public class HttpRequest extends Request { /** * 获取请求URL最后的一个/后面的部分的float值
- * 例如请求URL /pipes/record/query/2
+ * 例如请求URL /pipes/user/query/2
* 获取type参数: float type = request.getRequstURILastPath(0.0f); //type = 2.0f * * @param defvalue 默认float值 @@ -794,7 +794,7 @@ public class HttpRequest extends Request { /** * 获取请求URL最后的一个/后面的部分的int值
- * 例如请求URL /pipes/record/query/2
+ * 例如请求URL /pipes/user/query/2
* 获取type参数: long type = request.getRequstURILastPath(0L); //type = 2 * * @param defvalue 默认long值 @@ -812,7 +812,7 @@ public class HttpRequest extends Request { /** * 获取请求URL最后的一个/后面的部分的int值
- * 例如请求URL /pipes/record/query/2
+ * 例如请求URL /pipes/user/query/2
* 获取type参数: long type = request.getRequstURILastPath(16, 0L); //type = 2 * * @param radix 进制数 @@ -831,7 +831,7 @@ public class HttpRequest extends Request { /** * 获取请求URL最后的一个/后面的部分的double值
- * 例如请求URL /pipes/record/query/2
+ * 例如请求URL /pipes/user/query/2
* 获取type参数: double type = request.getRequstURILastPath(0.0); //type = 2.0 * * @param defvalue 默认double值 @@ -862,7 +862,7 @@ public class HttpRequest extends Request { /** * 获取请求URL分段中含prefix段的值
- * 例如请求URL /pipes/record/query/name:hello
+ * 例如请求URL /pipes/user/query/name:hello
* 获取name参数: String name = request.getRequstURIPath("name:", "none"); * * @param prefix prefix段前缀 @@ -881,7 +881,7 @@ public class HttpRequest extends Request { /** * 获取请求URL分段中含prefix段的short值
- * 例如请求URL /pipes/record/query/type:10
+ * 例如请求URL /pipes/user/query/type:10
* 获取type参数: short type = request.getRequstURIPath("type:", (short)0); * * @param prefix prefix段前缀 @@ -900,7 +900,7 @@ public class HttpRequest extends Request { /** * 获取请求URL分段中含prefix段的short值
- * 例如请求URL /pipes/record/query/type:a
+ * 例如请求URL /pipes/user/query/type:a
* 获取type参数: short type = request.getRequstURIPath(16, "type:", (short)0); //type = 10 * * @param radix 进制数 @@ -920,7 +920,7 @@ public class HttpRequest extends Request { /** * 获取请求URL分段中含prefix段的int值
- * 例如请求URL /pipes/record/query/offset:0/limit:50
+ * 例如请求URL /pipes/user/query/offset:0/limit:50
* 获取offset参数: int offset = request.getRequstURIPath("offset:", 0);
* 获取limit参数: int limit = request.getRequstURIPath("limit:", 20);
* @@ -940,7 +940,7 @@ public class HttpRequest extends Request { /** * 获取请求URL分段中含prefix段的int值
- * 例如请求URL /pipes/record/query/offset:0/limit:50
+ * 例如请求URL /pipes/user/query/offset:0/limit:50
* 获取offset参数: int offset = request.getRequstURIPath("offset:", 0);
* 获取limit参数: int limit = request.getRequstURIPath(16, "limit:", 20); // limit = 16
* @@ -961,7 +961,7 @@ public class HttpRequest extends Request { /** * 获取请求URL分段中含prefix段的float值
- * 例如请求URL /pipes/record/query/point:40.0
+ * 例如请求URL /pipes/user/query/point:40.0
* 获取time参数: float point = request.getRequstURIPath("point:", 0.0f); * * @param prefix prefix段前缀 @@ -980,7 +980,7 @@ public class HttpRequest extends Request { /** * 获取请求URL分段中含prefix段的long值
- * 例如请求URL /pipes/record/query/time:1453104341363/id:40
+ * 例如请求URL /pipes/user/query/time:1453104341363/id:40
* 获取time参数: long time = request.getRequstURIPath("time:", 0L); * * @param prefix prefix段前缀 @@ -999,7 +999,7 @@ public class HttpRequest extends Request { /** * 获取请求URL分段中含prefix段的long值
- * 例如请求URL /pipes/record/query/time:1453104341363/id:40
+ * 例如请求URL /pipes/user/query/time:1453104341363/id:40
* 获取time参数: long time = request.getRequstURIPath(16, "time:", 0L); * * @param radix 进制数 @@ -1019,7 +1019,7 @@ public class HttpRequest extends Request { /** * 获取请求URL分段中含prefix段的double值
- * 例如请求URL /pipes/record/query/point:40.0
+ * 例如请求URL /pipes/user/query/point:40.0
* 获取time参数: double point = request.getRequstURIPath("point:", 0.0); * * @param prefix prefix段前缀