aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick/api/controllers/SkypeEndpoint.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-09-05 13:53:17 +0300
committerGravatar Vitaly Takmazov2017-09-05 13:53:17 +0300
commit4ea29d56746b764d14838b64d43ca1358557b50f (patch)
tree641912e24d76104bac5255036927ba6eeb2d0340 /juick-api/src/main/java/com/juick/api/controllers/SkypeEndpoint.java
parentfb734b50962744f4cdfc51e7a228de18bc96130a (diff)
api: no dependency on Servlet API anymore
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/controllers/SkypeEndpoint.java')
-rw-r--r--juick-api/src/main/java/com/juick/api/controllers/SkypeEndpoint.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-api/src/main/java/com/juick/api/controllers/SkypeEndpoint.java b/juick-api/src/main/java/com/juick/api/controllers/SkypeEndpoint.java
index 8034a284..82622652 100644
--- a/juick-api/src/main/java/com/juick/api/controllers/SkypeEndpoint.java
+++ b/juick-api/src/main/java/com/juick/api/controllers/SkypeEndpoint.java
@@ -26,8 +26,8 @@ import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;
-import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
+import java.io.InputStream;
import java.nio.charset.StandardCharsets;
/**
@@ -38,8 +38,8 @@ public class SkypeEndpoint {
private static final Logger logger = LoggerFactory.getLogger(SkypeEndpoint.class);
@RequestMapping(value = "/skypebotendpoint", method = RequestMethod.POST)
@ResponseStatus(value = HttpStatus.OK)
- public void doPost(HttpServletRequest req) throws IOException {
- String data = IOUtils.toString(req.getInputStream(), StandardCharsets.UTF_8);
+ public void doPost(InputStream body) throws IOException {
+ String data = IOUtils.toString(body, StandardCharsets.UTF_8);
logger.info("got data: {}", data);
}
}