We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d9f1b3 commit a39834cCopy full SHA for a39834c
spring-cloud-bamboo/src/main/java/cn/springcloud/bamboo/RequestBody.java
@@ -1,12 +1,33 @@
1
package cn.springcloud.bamboo;
2
3
-public interface RequestBody {
4
+import javax.servlet.http.HttpServletRequest;
5
+
6
+/**
7
+ * 请求的body
8
+ * 如读取 {@link HttpServletRequest#getInputStream()}获取得到的内容
9
+ */
10
+public interface RequestBody {
11
12
13
+ /**
14
+ * 返回byte数组类型的request body
15
+ * @return 请求体内容
16
17
byte[] getBody();
18
19
20
21
+ * 返回字符串类型的request body
22
23
24
String getBodyString();
25
26
27
28
+ * 将byte数组类型的request body转换成字符串类型的request body并返回
29
+ * @param charset 字符串编码
30
31
32
String getBodyString(String charset);
33
}
0 commit comments