This project has retired. For details please refer to its Attic page.

org.apache.lenya.ac.cache
Class URLKeyUtil

java.lang.Object
  extended by org.apache.lenya.ac.cache.URLKeyUtil

public final class URLKeyUtil
extends java.lang.Object

Utility class to generate String cache keys from webapp URLs.

Version:
$Id: URLKeyUtil.java 473841 2006-11-12 00:46:38Z gregor $

Method Summary
static java.lang.String generateKey(org.apache.excalibur.source.SourceResolver resolver, java.lang.String webappUrl)
          Generates a cache key for a context and a webapp URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generateKey

public static java.lang.String generateKey(org.apache.excalibur.source.SourceResolver resolver,
                                           java.lang.String webappUrl)
                                    throws java.net.MalformedURLException,
                                           java.io.IOException
Generates a cache key for a context and a webapp URL.

Parameters:
resolver - The resolver of the context.
webappUrl - The webapp Url.
Returns:
A String.
Throws:
java.net.MalformedURLException - when something went wrong.
java.io.IOException - when something went wrong.


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.