com.ning.http.util
Enum QueryComputer

java.lang.Object
  extended by java.lang.Enum<QueryComputer>
      extended by com.ning.http.util.QueryComputer
All Implemented Interfaces:
Serializable, Comparable<QueryComputer>

public enum QueryComputer
extends Enum<QueryComputer>


Enum Constant Summary
URL_ENCODING_DISABLED_QUERY_COMPUTER
           
URL_ENCODING_ENABLED_QUERY_COMPUTER
           
 
Method Summary
 String computeFullQueryString(String query, List<Param> queryParams)
           
static QueryComputer queryComputer(boolean disableUrlEncoding)
           
static QueryComputer valueOf(String name)
          Returns the enum constant of this type with the specified name.
static QueryComputer[] 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)
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.