Package org.asynchttpclient.util
Enum UriEncoder
- java.lang.Object
-
- java.lang.Enum<UriEncoder>
-
- org.asynchttpclient.util.UriEncoder
-
- All Implemented Interfaces:
Serializable
,Comparable<UriEncoder>
public enum UriEncoder extends Enum<UriEncoder>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Uri
encode(Uri uri, @Nullable List<Param> queryParams)
protected abstract String
encodePath(String path)
static UriEncoder
uriEncoder(boolean disableUrlEncoding)
static UriEncoder
valueOf(String name)
Returns the enum constant of this type with the specified name.static UriEncoder[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.protected abstract String
withoutQueryWithParams(List<Param> queryParams)
protected abstract String
withQueryWithoutParams(String query)
protected abstract String
withQueryWithParams(String query, List<Param> queryParams)
-
-
-
Enum Constant Detail
-
FIXING
public static final UriEncoder FIXING
-
RAW
public static final UriEncoder RAW
-
-
Method Detail
-
values
public static UriEncoder[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UriEncoder c : UriEncoder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UriEncoder valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
uriEncoder
public static UriEncoder uriEncoder(boolean disableUrlEncoding)
-
withQueryWithParams
protected abstract String withQueryWithParams(String query, List<Param> queryParams)
-
-