SyntaxFix
Write A Post
Hire A Developer
Questions
As suggested here you can also inject the HttpServletRequest as a method param, e.g.:
HttpServletRequest
public MyResponseObject myApiMethod(HttpServletRequest request, ...) { ... }