Get HttpServletRequest object in restful web service

    @POST
public Response post(@Context HttpServletRequest request,
@Context HttpServletResponse response){
return Response
.ok("pong2")
.build();
}

Comments