Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.common.utils
Class URIUtils

java.lang.Object
  extended by org.nuxeo.common.utils.URIUtils

public final class URIUtils
extends Object

Helper class to parse a URI or build one given parameters.

Author:
Anahide Tchertchian, Florent Guillaume

Method Summary
static String addParametersToURIQuery(String uriString, Map<String,String> parameters)
           
static Map<String,String> getRequestParameters(String uriQuery)
           
static String getURIPath(String uri)
          Returns an URI path given the uri.
static String getURIQuery(Map<String,String> parameters)
          Creates an URI query given the request parameters.
static String quoteURIPathComponent(String s, boolean quoteSlash)
           
static String unquoteURIPathComponent(String s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getURIQuery

public static String getURIQuery(Map<String,String> parameters)
Creates an URI query given the request parameters.

Returns:
an URI query given the request parameters.

getURIPath

public static String getURIPath(String uri)
Returns an URI path given the uri.


getRequestParameters

public static Map<String,String> getRequestParameters(String uriQuery)
Returns:
a map with request parameters information given an URI query.

addParametersToURIQuery

public static String addParametersToURIQuery(String uriString,
                                             Map<String,String> parameters)

quoteURIPathComponent

public static String quoteURIPathComponent(String s,
                                           boolean quoteSlash)

unquoteURIPathComponent

public static String unquoteURIPathComponent(String s)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.