/** * Decodes a given string using the standard URI encoding mechanism and the * UTF-8 character set. * * @param toDecode * The string to decode. * @return The decoded string. */ public static String decode(String toDecode) { return decode(toDecode, CharacterSet.UTF_8); }
/** * Returns the optionnally decoded scheme component. * * @param decode * Indicates if the result should be decoded using the {@link #decode(String)} method. * @return The optionnally decoded scheme component. * @see #getScheme() */ public String getScheme(boolean decode) { return decode ? decode(getScheme()) : getScheme(); }
/** * Returns the optionnally decoded relative part. * * @param decode * Indicates if the result should be decoded using the * {@link #decode(String)} method. * @return The optionnally decoded relative part. * @see #getRelativePart() */ public String getRelativePart(boolean decode) { return decode ? decode(getRelativePart()) : getRelativePart(); }
/** * Returns the optionnally decoded user info component. * * @param decode * Indicates if the result should be decoded using the * {@link #decode(String)} method. * @return The optionnally decoded user info component. * @see #getUserInfo() */ public String getUserInfo(boolean decode) { return decode ? decode(getUserInfo()) : getUserInfo(); }
/** * Returns the optionnally decoded host domain name component. * * @param decode * Indicates if the result should be decoded using the * {@link #decode(String)} method. * @return The optionnally decoded host domain name component. * @see #getHostDomain() */ public String getHostDomain(boolean decode) { return decode ? decode(getHostDomain()) : getHostDomain(); }
/** * Returns the optionnally decoded host identifier. * * @param decode * Indicates if the result should be decoded using the * {@link #decode(String)} method. * @return The optionnally decoded host identifier. * @see #getHostIdentifier() */ public String getHostIdentifier(boolean decode) { return decode ? decode(getHostIdentifier()) : getHostIdentifier(); }
/** * Returns the optionnally decoded query component. * * @param decode * Indicates if the result should be decoded using the * {@link #decode(String)} method. * @return The optionnally decoded query component. * @see #getQuery() */ public String getQuery(boolean decode) { return decode ? decode(getQuery()) : getQuery(); }
/** * Returns the optionnally decoded relative part. * * @param decode * Indicates if the result should be decoded using the * {@link #decode(String)} method. * @return The optionnally decoded relative part. * @see #getRelativePart() */ public String getRelativePart(boolean decode) { return decode ? decode(getRelativePart()) : getRelativePart(); }
/** * Returns the optionnally decoded hierarchical part. * * @param decode * Indicates if the result should be decoded using the {@link #decode(String)} method. * @return The optionnally decoded hierarchical part. * @see #getHierarchicalPart() */ public String getHierarchicalPart(boolean decode) { return decode ? decode(getHierarchicalPart()) : getHierarchicalPart(); }
/** * Returns the optionnally decoded absolute resource identifier. * * @param decode * Indicates if the result should be decoded using the {@link #decode(String)} method. * @return The optionnally decoded absolute resource identifier. * @see #getIdentifier() */ public String getIdentifier(boolean decode) { return decode ? decode(getIdentifier()) : getIdentifier(); }
/** * Returns the optionnally decoded authority component. * * @param decode * Indicates if the result should be decoded using the * {@link #decode(String)} method. * @return The optionnally decoded authority component. * @see #getAuthority() */ public String getAuthority(boolean decode) { return decode ? decode(getAuthority()) : getAuthority(); }
/** * Returns the optionnally decoded hierarchical part. * * @param decode * Indicates if the result should be decoded using the * {@link #decode(String)} method. * @return The optionnally decoded hierarchical part. * @see #getHierarchicalPart() */ public String getHierarchicalPart(boolean decode) { return decode ? decode(getHierarchicalPart()) : getHierarchicalPart(); }
/** * Returns the optionnally decoded absolute resource identifier. * * @param decode * Indicates if the result should be decoded using the * {@link #decode(String)} method. * @return The optionnally decoded absolute resource identifier. * @see #getIdentifier() */ public String getIdentifier(boolean decode) { return decode ? decode(getIdentifier()) : getIdentifier(); }
/** * Returns the optionnally decoded path component. * * @param decode * Indicates if the result should be decoded using the * {@link #decode(String)} method. * @return The optionnally decoded path component. * @see #getPath() */ public String getPath(boolean decode) { return decode ? decode(getPath()) : getPath(); }
/** * Returns the optionnally decoded scheme component. * * @param decode * Indicates if the result should be decoded using the * {@link #decode(String)} method. * @return The optionnally decoded scheme component. * @see #getScheme() */ public String getScheme(boolean decode) { return decode ? decode(getScheme()) : getScheme(); }
/** * Returns the optionnally decoded host domain name component. * * @param decode * Indicates if the result should be decoded using the {@link #decode(String)} method. * @return The optionnally decoded host domain name component. * @see #getHostDomain() */ public String getHostDomain(boolean decode) { return decode ? decode(getHostDomain()) : getHostDomain(); }
/** * Returns the optionnally decoded matrix. * * @param decode * Indicates if the result should be decoded using the {@link #decode(String)} method. * @return The optionnally decoded matrix. * @see #getMatrix() */ public String getMatrix(boolean decode) { return decode ? decode(getMatrix()) : getMatrix(); }
/** * Returns the optionnally decoded query component. * * @param decode * Indicates if the result should be decoded using the {@link #decode(String)} method. * @return The optionnally decoded query component. * @see #getQuery() */ public String getQuery(boolean decode) { return decode ? decode(getQuery()) : getQuery(); }
/** * Returns the optionnally decoded relative part. * * @param decode * Indicates if the result should be decoded using the {@link #decode(String)} method. * @return The optionnally decoded relative part. * @see #getRelativePart() */ public String getRelativePart(boolean decode) { return decode ? decode(getRelativePart()) : getRelativePart(); }
/** * Returns the optionnally decoded user info component. * * @param decode * Indicates if the result should be decoded using the {@link #decode(String)} method. * @return The optionnally decoded user info component. * @see #getUserInfo() */ public String getUserInfo(boolean decode) { return decode ? decode(getUserInfo()) : getUserInfo(); }