This is an automated email from the ASF dual-hosted git repository.
tsato pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 124646a camel-http-common - Fix typos in HttpHelper
124646a is described below
commit 124646adceb8b53c4da813b6cc734d8aae599714
Author: Tadayoshi Sato <[email protected]>
AuthorDate: Fri Aug 23 12:14:46 2019 +0900
camel-http-common - Fix typos in HttpHelper
---
.../main/java/org/apache/camel/http/common/HttpHelper.java | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git
a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpHelper.java
b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpHelper.java
index d647ea4..f84e85c 100644
---
a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpHelper.java
+++
b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpHelper.java
@@ -179,25 +179,26 @@ public final class HttpHelper {
}
/**
- * Reads the response body from the given http servlet request.
+ * Reads the request body from the given http servlet request.
*
* @param request http servlet request
* @param exchange the exchange
* @return the request body, can be <tt>null</tt> if no body
- * @throws IOException is thrown if error reading response body
+ * @throws IOException is thrown if error reading request body
*/
public static Object readRequestBodyFromServletRequest(HttpServletRequest
request, Exchange exchange) throws IOException {
InputStream is = HttpConverter.toInputStream(request, exchange);
+ // TODO should readRequestBodyFromInputStream() be invoked instead?
return readResponseBodyFromInputStream(is, exchange);
}
/**
- * Reads the response body from the given input stream.
+ * Reads the request body from the given input stream.
*
* @param is the input stream
* @param exchange the exchange
- * @return the response body, can be <tt>null</tt> if no body
- * @throws IOException is thrown if error reading response body
+ * @return the request body, can be <tt>null</tt> if no body
+ * @throws IOException is thrown if error reading request body
*/
public static Object readRequestBodyFromInputStream(InputStream is,
Exchange exchange) throws IOException {
if (is == null) {