AbstractClient implements Closeable { public static String getUrlEncodedValue(String value) { try { return StringUtils.replace( new URLCodec().encode(StringUtils.trimToNull(value), getEncoding()), "+", "%20"); } catch (UnsupportedEncodingException ex) { LOGGER.error("Unsupported encoding!", ex); return null; } } protected  AbstractClient(String apiBaseUrl, String consumerToken, String consumerSecret); @SuppressWarnings("unused") final void authorize(Authorization authorization); @SuppressWarnings("RedundantThrows") final void authorize(String accessToken, String accessSecret); final Authorization authorizeAfterVerification(Verification verification, String verificationCode); final Authorization authorizeAfterVerification(String verificationToken, String verificationSecret, String verificationCode); @Override void close(); @SuppressWarnings("unused") final Verification fetchVerification(); final Verification fetchVerification(String callbackUrl); final String getApiBaseUrl(); final OAuthConsumer getAuthConsumer(); final OAuthProvider getAuthProvider(); static String getEncoding(); static String getUrlEncodedValue(String value); @SuppressWarnings("unused")
    final static String LIVE_API; @SuppressWarnings("unused")
    final static String SANDBOX_API; @SuppressWarnings("unused")
    final static String RESPONSE_HEADER_API_CLIENT; @SuppressWarnings("unused")
    final static String RESPONSE_HEADER_CAUSER_ID; @SuppressWarnings("unused")
    final static String RESPONSE_HEADER_REQUEST_REFNUM; @SuppressWarnings("unused")
    final static String RESPONSE_HEADER_RESOURCE_ID; @SuppressWarnings("unused")
    final static String XML_CONTENT_TYPE; @SuppressWarnings("unused")
    final static String JSON_CONTENT_TYPE; }
@Test public void testGetUrlEncodedValue() { Assert.assertEquals( "1%2B2%3D3%20%C3%A4%C3%B6%C3%BC%C3%9F%20%2F%20%E2%82%AC%20%26", AbstractClient.getUrlEncodedValue("1+2=3 äöüß / € &")); }