Apache CXF API

org.apache.cxf.transport.http
Class UrlUtilities

java.lang.Object
  extended by org.apache.cxf.transport.http.UrlUtilities

public final class UrlUtilities
extends Object

Functions used to work with URLs in HTTP-related code.


Method Summary
static String getStem(String baseURI)
          Return everything in the path up to the last slash in a URI.
static Map<String,String> parseQueryString(String s)
          Create a map from String to String that represents the contents of the query portion of a URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseQueryString

public static Map<String,String> parseQueryString(String s)
Create a map from String to String that represents the contents of the query portion of a URL. For each x=y, x is the key and y is the value.

Parameters:
s - the query part of the URI.
Returns:
the map.

getStem

public static String getStem(String baseURI)
Return everything in the path up to the last slash in a URI.

Parameters:
baseURI -
Returns:
the trailing

Apache CXF API

Apache CXF