@Test public void textValue() throws Exception { assertEquals("", new UrlEncodedParameter(new Precoded("test")).textValue().toString()); assertEquals("", new UrlEncodedParameter(new Precoded("test%61")).textValue().toString()); assertEquals("", new UrlEncodedParameter(new Precoded("test%3D")).textValue().toString()); assertEquals("123", new UrlEncodedParameter(new Precoded("test=123")).textValue().toString()); assertEquals("1234", new UrlEncodedParameter(new Precoded("test%61=123%34")).textValue().toString()); assertEquals("123=", new UrlEncodedParameter(new Precoded("test%3D=123%3D")).textValue().toString()); }
@Override public CharSequence textValue() { parse(); try { return mValue.decoded(mCharSet); } catch (UnsupportedEncodingException e) { throw new RuntimeException(String.format("CharSet %s not supported by Runtime", mCharSet)); } }
UrlEncodedParameter implements Parameter { @Override public CharSequence textValue() { parse(); try { return mValue.decoded(mCharSet); } catch (UnsupportedEncodingException e) { throw new RuntimeException(String.format("CharSet %s not supported by Runtime", mCharSet)); } } }
UrlEncodedParameter implements Parameter { @Override public CharSequence textValue() { parse(); try { return mValue.decoded(mCharSet); } catch (UnsupportedEncodingException e) { throw new RuntimeException(String.format("CharSet %s not supported by Runtime", mCharSet)); } } UrlEncodedParameter(UriEncoded encodedPair);  UrlEncodedParameter(UriEncoded encodedParameter, String charSet); }
UrlEncodedParameter implements Parameter { @Override public CharSequence textValue() { parse(); try { return mValue.decoded(mCharSet); } catch (UnsupportedEncodingException e) { throw new RuntimeException(String.format("CharSet %s not supported by Runtime", mCharSet)); } } UrlEncodedParameter(UriEncoded encodedPair);  UrlEncodedParameter(UriEncoded encodedParameter, String charSet); @Override CharSequence name(); @Override CharSequence textValue(); }
UrlEncodedParameter implements Parameter { @Override public CharSequence textValue() { parse(); try { return mValue.decoded(mCharSet); } catch (UnsupportedEncodingException e) { throw new RuntimeException(String.format("CharSet %s not supported by Runtime", mCharSet)); } } UrlEncodedParameter(UriEncoded encodedPair);  UrlEncodedParameter(UriEncoded encodedParameter, String charSet); @Override CharSequence name(); @Override CharSequence textValue();  }