@Test public void testParameter() throws ProtocolException { String queryString = "a=aa&%E6%B5%8B%E8%AF%95=%E6%B5%8B%E8%AF%95value&a=bb"; List<Map<String, List<String>>> paralist = decoder.decode(queryString.getBytes()); Map<String, List<String>> paras = paralist.get(0); Assert.assertEquals(2, paras.size()); LOG.debug("[CRAFT-ATOM-PROTOCOL-HTTP] Encoded parameter={}", new String(encoder.encode(paras))); System.out.println(String.format("[CRAFT-ATOM-PROTOCOL-HTTP] (^_^) <%s> Case -> test parameter. ", CaseCounter.incr(1))); }
@Override public List<Map<String, List<String>>> decode(byte[] bytes) throws ProtocolException { try { return decode0(bytes); } catch (Exception e) { if (e instanceof ProtocolException) { throw (ProtocolException) e; } throw new ProtocolException(e); } }
HttpParameterDecoder extends AbstractProtocolCodec implements ProtocolDecoder<Map<String, List<String>>> { @Override public List<Map<String, List<String>>> decode(byte[] bytes) throws ProtocolException { try { return decode0(bytes); } catch (Exception e) { if (e instanceof ProtocolException) { throw (ProtocolException) e; } throw new ProtocolException(e); } } }
HttpParameterDecoder extends AbstractProtocolCodec implements ProtocolDecoder<Map<String, List<String>>> { @Override public List<Map<String, List<String>>> decode(byte[] bytes) throws ProtocolException { try { return decode0(bytes); } catch (Exception e) { if (e instanceof ProtocolException) { throw (ProtocolException) e; } throw new ProtocolException(e); } } HttpParameterDecoder();  HttpParameterDecoder(Charset charset); }
HttpParameterDecoder extends AbstractProtocolCodec implements ProtocolDecoder<Map<String, List<String>>> { @Override public List<Map<String, List<String>>> decode(byte[] bytes) throws ProtocolException { try { return decode0(bytes); } catch (Exception e) { if (e instanceof ProtocolException) { throw (ProtocolException) e; } throw new ProtocolException(e); } } HttpParameterDecoder();  HttpParameterDecoder(Charset charset); @Override void reset(); @Override List<Map<String, List<String>>> decode(byte[] bytes); }
HttpParameterDecoder extends AbstractProtocolCodec implements ProtocolDecoder<Map<String, List<String>>> { @Override public List<Map<String, List<String>>> decode(byte[] bytes) throws ProtocolException { try { return decode0(bytes); } catch (Exception e) { if (e instanceof ProtocolException) { throw (ProtocolException) e; } throw new ProtocolException(e); } } HttpParameterDecoder();  HttpParameterDecoder(Charset charset); @Override void reset(); @Override List<Map<String, List<String>>> decode(byte[] bytes);  }