@Test public void deserializeEmptyBuffer() { final FormUrlEncodedHttpDeserializer deserializer = FormUrlEncodedHttpDeserializer.UTF8; final HttpHeaders headers = DefaultHttpHeadersFactory.INSTANCE.newHeaders(); headers.set(CONTENT_TYPE, "application/x-www-form-urlencoded; charset=UTF-8"); final Map<String, List<String>> deserialized = deserializer.deserialize(headers, EMPTY_BUFFER); assertEquals("Unexpected parameter count", 0, deserialized.size()); }
@Override public Map<String, List<String>> deserialize(final HttpHeaders headers, final Buffer payload) { checkContentType(headers, checkContentType); return deserialize(payload); }
FormUrlEncodedHttpDeserializer implements HttpDeserializer<Map<String, List<String>>> { @Override public Map<String, List<String>> deserialize(final HttpHeaders headers, final Buffer payload) { checkContentType(headers, checkContentType); return deserialize(payload); } }
FormUrlEncodedHttpDeserializer implements HttpDeserializer<Map<String, List<String>>> { @Override public Map<String, List<String>> deserialize(final HttpHeaders headers, final Buffer payload) { checkContentType(headers, checkContentType); return deserialize(payload); } FormUrlEncodedHttpDeserializer(final Charset charset, final Predicate<HttpHeaders> checkContentType); }
FormUrlEncodedHttpDeserializer implements HttpDeserializer<Map<String, List<String>>> { @Override public Map<String, List<String>> deserialize(final HttpHeaders headers, final Buffer payload) { checkContentType(headers, checkContentType); return deserialize(payload); } FormUrlEncodedHttpDeserializer(final Charset charset, final Predicate<HttpHeaders> checkContentType); @Override Map<String, List<String>> deserialize(final HttpHeaders headers, final Buffer payload); @Override BlockingIterable<Map<String, List<String>>> deserialize(final HttpHeaders headers,
                                                                   final BlockingIterable<Buffer> payload); @Override Publisher<Map<String, List<String>>> deserialize(final HttpHeaders headers,
                                                            final Publisher<Buffer> payload); }
FormUrlEncodedHttpDeserializer implements HttpDeserializer<Map<String, List<String>>> { @Override public Map<String, List<String>> deserialize(final HttpHeaders headers, final Buffer payload) { checkContentType(headers, checkContentType); return deserialize(payload); } FormUrlEncodedHttpDeserializer(final Charset charset, final Predicate<HttpHeaders> checkContentType); @Override Map<String, List<String>> deserialize(final HttpHeaders headers, final Buffer payload); @Override BlockingIterable<Map<String, List<String>>> deserialize(final HttpHeaders headers,
                                                                   final BlockingIterable<Buffer> payload); @Override Publisher<Map<String, List<String>>> deserialize(final HttpHeaders headers,
                                                            final Publisher<Buffer> payload);  }