org.jclouds.http.utils
Class Queries

java.lang.Object
  extended by org.jclouds.http.utils.Queries

public class Queries
extends Object

Author:
Adrian Cole

Constructor Summary
Queries()
           
 
Method Summary
static String buildQueryLine(com.google.common.collect.Multimap<String,?> queryParams)
           
static String encodeQueryLine(com.google.common.collect.Multimap<String,?> queryParams)
          percent encodes the query parameters, excep / and , characters.
static String encodeQueryLine(com.google.common.collect.Multimap<String,?> queryParams, Iterable<Character> skips)
          percent encodes the query parameters according except characters specified in the skips argument.
static com.google.common.base.Function<String,com.google.common.collect.Multimap<String,String>> queryParser()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Queries

public Queries()
Method Detail

queryParser

public static com.google.common.base.Function<String,com.google.common.collect.Multimap<String,String>> queryParser()

encodeQueryLine

public static String encodeQueryLine(com.google.common.collect.Multimap<String,?> queryParams)
percent encodes the query parameters, excep / and , characters.

Parameters:
queryParams -
Returns:
percent encoded line or null if no queryParams present

encodeQueryLine

public static String encodeQueryLine(com.google.common.collect.Multimap<String,?> queryParams,
                                     Iterable<Character> skips)
percent encodes the query parameters according except characters specified in the skips argument.

Parameters:
queryParams -
Returns:
percent encoded line or null if no queryParams present

buildQueryLine

public static String buildQueryLine(com.google.common.collect.Multimap<String,?> queryParams)


Copyright © 2009-2013 jclouds. All Rights Reserved.