users@jersey.java.net

[Jersey] Get HTTP version from Request

From: ismail berrada <ismaberrada_at_yahoo.fr>
Date: Tue, 2 Jun 2015 09:58:30 +0000 (UTC)

Hi all
I have a REST web service and I want to find the HTTP version used to send the HTTP Request
Here is an example:
    curl -v --http1.0 -X  GET "http://IP:PORT/path/to/my/resource"

The goal is to get the HTTP version aka in the previous case 1.0
I create a class that implements the interface ContainerRequestFilter but I did not find the informationI thinked about the interface MessageBodyReader but I'm not sure  of that
Is there a way to get the HTTP version ?
 
Regards