org.apache.taglibs.io
Class URLHelper

java.lang.Object
  extended by org.apache.taglibs.io.URLHelper

public class URLHelper
extends java.lang.Object

Some helper methods for creating URLs that can handle relative or absolute URIs or full URLs.

Version:
$Revision$
Author:
James Strachan

Constructor Summary
URLHelper()
           
 
Method Summary
static java.net.URL createURL(java.lang.String uri, javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext context)
           
static java.net.URL createURL(java.lang.String uri, javax.servlet.jsp.PageContext pageContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLHelper

public URLHelper()
Method Detail

createURL

public static java.net.URL createURL(java.lang.String uri,
                                     javax.servlet.jsp.PageContext pageContext)
                              throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

createURL

public static java.net.URL createURL(java.lang.String uri,
                                     javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.ServletContext context)
                              throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.