org.apache.cactus.internal.util
Class UrlUtil

java.lang.Object
  extended by org.apache.cactus.internal.util.UrlUtil

public class UrlUtil
extends java.lang.Object

Various utility methods for URL manipulation.

Version:
$Id: UrlUtil.java 238991 2004-05-22 11:34:50Z vmassol $

Constructor Summary
UrlUtil()
           
 
Method Summary
static java.lang.String getPath(java.net.URL theURL)
          Returns the path part of the URL.
static java.lang.String getQuery(java.net.URL theURL)
          Returns the query string of the URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlUtil

public UrlUtil()
Method Detail

getPath

public static java.lang.String getPath(java.net.URL theURL)
Returns the path part of the URL. This method is needed for JDK 1.2 support as URL.getPath() does not exist in JDK 1.2 (only for JDK 1.3+).

Parameters:
theURL - the URL from which to extract the path
Returns:
the path part of the URL

getQuery

public static java.lang.String getQuery(java.net.URL theURL)
Returns the query string of the URL. This method is needed for JDK 1.2 support as URL.getQuery() does not exist in JDK 1.2 (only for JDK 1.3+).

Parameters:
theURL - the URL from which to extract the query string
Returns:
the query string portion of the URL


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.