(Map<String, Collection<String>> headers)
| 115 | } |
| 116 | |
| 117 | private MediaType mediaType(Map<String, Collection<String>> headers) { |
| 118 | if (!headers.containsKey(HttpHeaders.CONTENT_TYPE)) return null; |
| 119 | |
| 120 | return MediaType.valueOf(headers.get(HttpHeaders.CONTENT_TYPE).iterator().next()); |
| 121 | } |
| 122 | |
| 123 | private MultivaluedMap<String, Object> toMultivaluedMap(Map<String, Collection<String>> headers) { |
| 124 | final MultivaluedHashMap<String, Object> mvHeaders = new MultivaluedHashMap<>(); |
no test coverage detected