org.activemq.util
Class URIHelper

java.lang.Object
  extended by org.activemq.util.URIHelper

public class URIHelper
extends Object

Some URI based helper methods.

Version:
$Revision: 1.1.1.1 $

Constructor Summary
URIHelper(String path)
          Create URIHelper with a path
 
Method Summary
protected static void addKeyValuePair(Map answer, String pair)
           
static String getLastPath(URI uri)
          Get the Path
static String getLastQuery(URI uri)
          Get the query str
 String getNext()
           
 boolean hasNext()
           
static Map parseQuery(String query)
          Parsers the query string of the URI into a map of key-value pairs
static Map parseQuery(URI uri)
          Parsers the query string of the URI into a map of key-value pairs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIHelper

public URIHelper(String path)
Create URIHelper with a path

Parameters:
path -
Method Detail

parseQuery

public static Map parseQuery(URI uri)
Parsers the query string of the URI into a map of key-value pairs


parseQuery

public static Map parseQuery(String query)
Parsers the query string of the URI into a map of key-value pairs


getLastQuery

public static String getLastQuery(URI uri)
Get the query str

Parameters:
uri -
Returns:
the last query - the URI could be a composite

getLastPath

public static String getLastPath(URI uri)
Get the Path

Parameters:
uri -
Returns:
the last path - the URI could be a composite

addKeyValuePair

protected static void addKeyValuePair(Map answer,
                                      String pair)

hasNext

public boolean hasNext()

getNext

public String getNext()


Copyright © 2004-2009 Protique, Ltd.. All Rights Reserved.