return uriInfo;
}
public static HttpHeaders extractHttpHeaders(HttpServletRequest request)
{
HttpHeadersImpl headers = new HttpHeadersImpl();
MultivaluedMap<String, String> requestHeaders = extractRequestHeaders(request);
headers.setRequestHeaders(requestHeaders);
List<MediaType> acceptableMediaTypes = extractAccepts(requestHeaders);
List<String> acceptableLanguages = extractLanguages(requestHeaders);
headers.setAcceptableMediaTypes(acceptableMediaTypes);
headers.setAcceptableLanguages(acceptableLanguages);
headers.setLanguage(requestHeaders.getFirst(HttpHeaderNames.CONTENT_LANGUAGE));
String contentType = request.getContentType();
if (contentType != null) headers.setMediaType(MediaType.valueOf(contentType));
Map<String, Cookie> cookies = extractCookies(request);
headers.setCookies(cookies);
return headers;
}