I am trying to read out the HTTP Cookies from AppEngine Endpoints method:
@ApiMethod(httpMethod = "get")
public void getAll(HttpServletRequest req) {
log.info("req: " + req);
Cookie[] cookies = req.getCookies();
for (Cookie cookie : cookies) {
log.info("cookie: " + cookie.getName() + " " + cookie.getValue());
}
}
But no matter what i try, the cookies are NULL. Any ideas? It should work in this way: http://chirashi.zenconsult.net/2013/07/custom-authentication-with-google-cloud-endpoints-using-app-engine-java