Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


oracle.stellent.ridc.common.util
Class HttpUtils

java.lang.Object
  extended by oracle.stellent.ridc.common.util.HttpUtils


public abstract class HttpUtils
extends Object

Class for holding utility methods for working with HTTP


Constructor Summary
HttpUtils()
           

 

Method Summary
static List<NameValuePair> convertToNVPairs(String query)
          Convert the query string into a list of Name Value pairs
static Map<String,String> createParametersFromQuery(String queryString)
          Build a map of query name to value from a HTTP query string
static String createQueryFromParameters(Map<String,String> parameters)
          Create the query string from the parameters.
static URI replaceQueryString(URI uri, String queryString)
          Replace the query string with a new string in an URI

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

HttpUtils

public HttpUtils()

Method Detail

createParametersFromQuery

public static Map<String,String> createParametersFromQuery(String queryString)
Build a map of query name to value from a HTTP query string
Parameters:
queryString - a URL-encoded query string (param=value&param2=value2)
Returns:
a mapping of param name to value

createQueryFromParameters

public static String createQueryFromParameters(Map<String,String> parameters)
Create the query string from the parameters.
Parameters:
parameters - a name/value pair mapping of HTTP parameters
Returns:
a URL-encoded string, does not include the beginning "?" character

convertToNVPairs

public static List<NameValuePair> convertToNVPairs(String query)
Convert the query string into a list of Name Value pairs
Parameters:
query - the query string
Returns:
the name value pair

replaceQueryString

public static URI replaceQueryString(URI uri,
                                     String queryString)
Replace the query string with a new string in an URI
Parameters:
uri - the uri
queryString - the new query string
Returns:
the new URI

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.