com.atlassian.confluence.util
Class QueryStringUtil

java.lang.Object
  extended by com.atlassian.confluence.util.QueryStringUtil

public class QueryStringUtil
extends java.lang.Object


Constructor Summary
QueryStringUtil()
           
 
Method Summary
static java.util.Map<java.lang.String,java.lang.String> extractParams(java.net.URL link)
          Extracts parameters from the query string portion of the supplied URL and inserts these into a map.
static java.util.Map<java.lang.String,java.lang.String> toMap(java.lang.String queryString)
          Parses the supplied query string and inserts the specified parameters into a map.
static java.lang.String toString(java.util.Map<java.lang.String,java.lang.String> params)
          Returns a query string representation of the supplied parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryStringUtil

public QueryStringUtil()
Method Detail

toMap

public static java.util.Map<java.lang.String,java.lang.String> toMap(java.lang.String queryString)
Parses the supplied query string and inserts the specified parameters into a map. Does not support multi-valued keys in the query string.

Parameters:
queryString - query string to parse
Returns:
map of parameters specified in the query string

extractParams

public static java.util.Map<java.lang.String,java.lang.String> extractParams(java.net.URL link)
Extracts parameters from the query string portion of the supplied URL and inserts these into a map. Does not support multi-valued keys in the query string.

Parameters:
link - URL to extra parameters from
Returns:
map of parameters specified in the query string portion of the URL

toString

public static java.lang.String toString(java.util.Map<java.lang.String,java.lang.String> params)
Returns a query string representation of the supplied parameters.

Parameters:
params - parameters to include in the query string
Returns:
query string


Copyright © 2003-2014 Atlassian. All Rights Reserved.