/** * Returns a string where all URL component escape sequences have been * converted back to their original character representations. * <p> * Note: this method will convert the space character escape short form, '+', * into a space. It should therefore only be used for query-string parts. * * @param encodedURLComponent string containing encoded URL component * sequences * @return string with no encoded URL component encoded sequences * * @throws NullPointerException if encodedURLComponent is <code>null</code> */ public static String decodeQueryString(String encodedURLComponent) { StringValidator.throwIfNull("encodedURLComponent", encodedURLComponent); return decodeQueryStringImpl(encodedURLComponent); }
/** * Returns a string where all URL component escape sequences have been * converted back to their original character representations. * * @param encodedURLComponent string containing encoded URL component * sequences * @param fromQueryString if <code>true</code>, +'s will be turned into * spaces, otherwise they'll be kept as-is. * @return string with no encoded URL component encoded sequences * * @throws NullPointerException if encodedURLComponent is <code>null</code> * * @deprecated Use {@link #decodeQueryString(String)}, * {@link #decodePathSegment(String)} */ @Deprecated public static String decodeComponent(String encodedURLComponent, boolean fromQueryString) { StringValidator.throwIfNull("encodedURLComponent", encodedURLComponent); return fromQueryString ? decodeQueryStringImpl(encodedURLComponent) : decodePathSegmentImpl(encodedURLComponent); }
/** * Returns a string where all URL component escape sequences have been * converted back to their original character representations. * <p> * Note: this method will convert the space character escape short form, '+', * into a space. It should therefore only be used for query-string parts. * * @param encodedURLComponent string containing encoded URL component * sequences * @return string with no encoded URL component encoded sequences * * @throws NullPointerException if encodedURLComponent is <code>null</code> */ public static String decodeQueryString(String encodedURLComponent) { StringValidator.throwIfNull("encodedURLComponent", encodedURLComponent); return decodeQueryStringImpl(encodedURLComponent); }
/** * Returns a string where all URL component escape sequences have been * converted back to their original character representations. * <p> * Note: this method will convert the space character escape short form, '+', * into a space. It should therefore only be used for query-string parts. * * @param encodedURLComponent string containing encoded URL component * sequences * @return string with no encoded URL component encoded sequences * * @throws NullPointerException if encodedURLComponent is <code>null</code> */ public static String decodeQueryString(String encodedURLComponent) { StringValidator.throwIfNull("encodedURLComponent", encodedURLComponent); return decodeQueryStringImpl(encodedURLComponent); }
/** * Returns a string where all URL component escape sequences have been * converted back to their original character representations. * * @param encodedURLComponent string containing encoded URL component * sequences * @param fromQueryString if <code>true</code>, +'s will be turned into * spaces, otherwise they'll be kept as-is. * @return string with no encoded URL component encoded sequences * * @throws NullPointerException if encodedURLComponent is <code>null</code> * * @deprecated Use {@link #decodeQueryString(String)}, * {@link #decodePathSegment(String)} */ @Deprecated public static String decodeComponent(String encodedURLComponent, boolean fromQueryString) { StringValidator.throwIfNull("encodedURLComponent", encodedURLComponent); return fromQueryString ? decodeQueryStringImpl(encodedURLComponent) : decodePathSegmentImpl(encodedURLComponent); }
/** * Returns a string where all URL component escape sequences have been * converted back to their original character representations. * * @param encodedURLComponent string containing encoded URL component * sequences * @param fromQueryString if <code>true</code>, +'s will be turned into * spaces, otherwise they'll be kept as-is. * @return string with no encoded URL component encoded sequences * * @throws NullPointerException if encodedURLComponent is <code>null</code> * * @deprecated Use {@link #decodeQueryString(String)}, * {@link #decodePathSegment(String)} */ @Deprecated public static String decodeComponent(String encodedURLComponent, boolean fromQueryString) { StringValidator.throwIfNull("encodedURLComponent", encodedURLComponent); return fromQueryString ? decodeQueryStringImpl(encodedURLComponent) : decodePathSegmentImpl(encodedURLComponent); }