@Test public void testReadMultipleSameFormParam() { MultivaluedMap<String, String> map = readFrom("name&name=George"); assertEquals(1, map.size()); List<String> nameEntry = map.get("name"); assertEquals(2, nameEntry.size()); assertNull(nameEntry.get(0)); assertEquals("George", nameEntry.get(1)); }
@Override public MultivaluedMap<String, String> readFrom( Class<MultivaluedMap<String, String>> type, Type genericType, Annotation annotations[], MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException { return readFrom(new NullableMultivaluedHashMap<String, String>(), mediaType, true, entityStream); }
FormMultivaluedMapProvider extends AbstractFormProvider<MultivaluedMap<String, String>> { @Override public MultivaluedMap<String, String> readFrom( Class<MultivaluedMap<String, String>> type, Type genericType, Annotation annotations[], MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException { return readFrom(new NullableMultivaluedHashMap<String, String>(), mediaType, true, entityStream); } }
FormMultivaluedMapProvider extends AbstractFormProvider<MultivaluedMap<String, String>> { @Override public MultivaluedMap<String, String> readFrom( Class<MultivaluedMap<String, String>> type, Type genericType, Annotation annotations[], MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException { return readFrom(new NullableMultivaluedHashMap<String, String>(), mediaType, true, entityStream); } FormMultivaluedMapProvider(); }
FormMultivaluedMapProvider extends AbstractFormProvider<MultivaluedMap<String, String>> { @Override public MultivaluedMap<String, String> readFrom( Class<MultivaluedMap<String, String>> type, Type genericType, Annotation annotations[], MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException { return readFrom(new NullableMultivaluedHashMap<String, String>(), mediaType, true, entityStream); } FormMultivaluedMapProvider(); @Override boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType); @Override MultivaluedMap<String, String> readFrom(
            Class<MultivaluedMap<String, String>> type,
            Type genericType,
            Annotation annotations[],
            MediaType mediaType,
            MultivaluedMap<String, String> httpHeaders,
            InputStream entityStream); @Override boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType); @Override void writeTo(
            MultivaluedMap<String, String> t,
            Class<?> type,
            Type genericType,
            Annotation annotations[],
            MediaType mediaType,
            MultivaluedMap<String, Object> httpHeaders,
            OutputStream entityStream); }
FormMultivaluedMapProvider extends AbstractFormProvider<MultivaluedMap<String, String>> { @Override public MultivaluedMap<String, String> readFrom( Class<MultivaluedMap<String, String>> type, Type genericType, Annotation annotations[], MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException { return readFrom(new NullableMultivaluedHashMap<String, String>(), mediaType, true, entityStream); } FormMultivaluedMapProvider(); @Override boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType); @Override MultivaluedMap<String, String> readFrom(
            Class<MultivaluedMap<String, String>> type,
            Type genericType,
            Annotation annotations[],
            MediaType mediaType,
            MultivaluedMap<String, String> httpHeaders,
            InputStream entityStream); @Override boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType); @Override void writeTo(
            MultivaluedMap<String, String> t,
            Class<?> type,
            Type genericType,
            Annotation annotations[],
            MediaType mediaType,
            MultivaluedMap<String, Object> httpHeaders,
            OutputStream entityStream);  }