com.ning.http.util
Enum QueryComputer
java.lang.Object
java.lang.Enum<QueryComputer>
com.ning.http.util.QueryComputer
- All Implemented Interfaces:
- Serializable, Comparable<QueryComputer>
public enum QueryComputer
- extends Enum<QueryComputer>
URL_ENCODING_ENABLED_QUERY_COMPUTER
public static final QueryComputer URL_ENCODING_ENABLED_QUERY_COMPUTER
URL_ENCODING_DISABLED_QUERY_COMPUTER
public static final QueryComputer URL_ENCODING_DISABLED_QUERY_COMPUTER
values
public static QueryComputer[] 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 (QueryComputer c : QueryComputer.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static QueryComputer 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 name
NullPointerException - if the argument is null
queryComputer
public static QueryComputer queryComputer(boolean disableUrlEncoding)
withQueryWithParams
protected abstract String withQueryWithParams(String query,
List<Param> queryParams)
withQueryWithoutParams
protected abstract String withQueryWithoutParams(String query)
withoutQueryWithParams
protected abstract String withoutQueryWithParams(List<Param> queryParams)
computeFullQueryString
public final String computeFullQueryString(String query,
List<Param> queryParams)
Copyright © 2014. All Rights Reserved.