org.apache.cxf.transport.http
Class UrlUtilities

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

public final class UrlUtilities
extends java.lang.Object

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


Method Summary
static java.lang.String getStem(java.lang.String baseURI)
          Return everything in the path up to the last slash in a URI.
static java.util.Map<java.lang.String,java.lang.String> parseQueryString(java.lang.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 java.util.Map<java.lang.String,java.lang.String> parseQueryString(java.lang.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 java.lang.String getStem(java.lang.String baseURI)
Return everything in the path up to the last slash in a URI.

Parameters:
baseURI -
Returns:
the trailing


Apache CXF