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 473861 2006-11-12 03:51:14Z 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 © $ Apache Software Foundation. All Rights Reserved.