org.activemq.util
Class URIHelper

java.lang.Object
  extended byorg.activemq.util.URIHelper

public class URIHelper
extends java.lang.Object

Some URI based helper methods.

Version:
$Revision: 1.1.1.1 $

Constructor Summary
URIHelper(java.lang.String path)
          Create URIHelper with a path
 
Method Summary
protected static void addKeyValuePair(java.util.Map answer, java.lang.String pair)
           
static java.lang.String getLastPath(java.net.URI uri)
          Get the Path
static java.lang.String getLastQuery(java.net.URI uri)
          Get the query str
 java.lang.String getNext()
           
 boolean hasNext()
           
static java.util.Map parseQuery(java.lang.String query)
          Parsers the query string of the URI into a map of key-value pairs
static java.util.Map parseQuery(java.net.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(java.lang.String path)
Create URIHelper with a path

Parameters:
path -
Method Detail

parseQuery

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


parseQuery

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


getLastQuery

public static java.lang.String getLastQuery(java.net.URI uri)
Get the query str

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

getLastPath

public static java.lang.String getLastPath(java.net.URI uri)
Get the Path

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

addKeyValuePair

protected static void addKeyValuePair(java.util.Map answer,
                                      java.lang.String pair)

hasNext

public boolean hasNext()

getNext

public java.lang.String getNext()


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