In the event of an exception in my Java REST application, I would like to record various information about the HTTP request call.
I can get request URI and HTTP headers using context injection
@Context private UriInfo uriInfo; @Context private HttpHeaders headers;
But how can I get the HTTP method (GET, PUT, ...)?
source share