org.apache.cocoon.components.url
Class ResourceURLFactory

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.url.ResourceURLFactory
All Implemented Interfaces:
Component, Contextualizable, LogEnabled, URLFactory

Deprecated. by the new source resolving of avalon excalibur

public class ResourceURLFactory
extends AbstractLogEnabled
implements URLFactory, Contextualizable

Version:
CVS $Id: ResourceURLFactory.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Giacomo Pati

Field Summary
protected  Context context
          Deprecated. The context
 
Fields inherited from interface org.apache.cocoon.components.url.URLFactory
ROLE
 
Constructor Summary
ResourceURLFactory()
          Deprecated.  
 
Method Summary
 void contextualize(Context context)
          Deprecated. Get the context
 URL getURL(String location)
          Deprecated. Create a URL from a location.
 URL getURL(URL base, String location)
          Deprecated.  
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected Context context
Deprecated. 
The context

Constructor Detail

ResourceURLFactory

public ResourceURLFactory()
Deprecated. 
Method Detail

getURL

public URL getURL(String location)
           throws MalformedURLException
Deprecated. 
Create a URL from a location. This method supports the resource:// pseudo-protocol for loading resources accessible to this same class' ClassLoader

Specified by:
getURL in interface URLFactory
Parameters:
location - The location
Returns:
The URL pointed to by the location
Throws:
MalformedURLException - If the location is malformed

getURL

public URL getURL(URL base,
                  String location)
           throws MalformedURLException
Deprecated. 
Specified by:
getURL in interface URLFactory
Throws:
MalformedURLException

contextualize

public void contextualize(Context context)
                   throws ContextException
Deprecated. 
Get the context

Specified by:
contextualize in interface Contextualizable
Throws:
ContextException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.