I know v3.0 has a getHeader() method, but what about 2.3? Maybe you can get it from steam?
UPDATE:
Actually, I need a RESTful app for the HTTP response header. For some reason, I decided to do it in a servlet filter ... but without success ... Solution @javax.ws.rs.core.Context HttpHeaders requestHeaders .
For instance,
@javax.ws.rs.GET public String invoceRestMethod(@Context HttpHeaders requestHeaders){ MultivaluedMap<String, String> map = headers.getRequestHeaders(); for (Map.Entry<String, List<String>> entry : map.entrySet()) {
Maybe this will help someone. But in any case, the Servlet problem is still open
source share