org.apache.cocoon.components.url
Class ContextURLFactory

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

Deprecated. by the new source resolving of avalon excalibur

public class ContextURLFactory
extends AbstractLogEnabled
implements URLFactory, Contextualizable

Version:
CVS $Id: ContextURLFactory.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
ContextURLFactory()
          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

ContextURLFactory

public ContextURLFactory()
Deprecated. 
Method Detail

getURL

public URL getURL(String location)
           throws MalformedURLException
Deprecated. 
Create a URL from a location. This method supports the context:// pseudo-protocol for loading resources accessible from the context root path

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.