|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.source.CocoonSourceResolver
This is the default implementation of the SourceResolver
for
Cocoon. The implementation is based on the original source resolver implementation
from the Excalibur project.
Field Summary | |
protected URL |
baseURL
The base URL |
protected Core |
core
The core |
protected SourceResolver |
customResolver
A (optional) custom source resolver |
protected ServiceManager |
manager
The service manager |
Fields inherited from interface org.apache.excalibur.source.SourceResolver |
METHOD, ROLE, URI_ENCODING, URI_PARAMETERS |
Constructor Summary | |
CocoonSourceResolver()
|
Method Summary | |
protected String |
absolutize(SourceFactory factory,
String baseURI,
String systemID)
Makes an absolute URI based on a baseURI and a relative URI. |
void |
contextualize(Context context)
|
void |
dispose()
|
protected ComponentLocator |
getComponentLocator()
Get the component locator. |
protected SourceFactory |
getSourceFactory(ComponentLocator m,
String scheme)
Get the SourceFactory |
void |
release(Source source)
|
Source |
resolveURI(String location)
|
Source |
resolveURI(String location,
String baseURI,
Map parameters)
|
void |
service(ServiceManager manager)
Obtain a reference to the SourceResolver with "/Cocoon" hint |
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 |
protected SourceResolver customResolver
protected ServiceManager manager
protected URL baseURL
protected Core core
Constructor Detail |
public CocoonSourceResolver()
Method Detail |
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)
public Source resolveURI(String location, String baseURI, Map parameters) throws MalformedURLException, IOException, SourceException
resolveURI
in interface SourceResolver
MalformedURLException
IOException
SourceException
SourceResolver.resolveURI(java.lang.String, java.lang.String, java.util.Map)
public Source resolveURI(String location) throws MalformedURLException, IOException, SourceException
resolveURI
in interface SourceResolver
MalformedURLException
IOException
SourceException
SourceResolver.resolveURI(java.lang.String)
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
public void dispose()
dispose
in interface Disposable
Disposable.dispose()
protected ComponentLocator getComponentLocator()
protected SourceFactory getSourceFactory(ComponentLocator m, String scheme) throws ProcessingException
ProcessingException
public void release(Source source)
release
in interface SourceResolver
SourceResolver.release(org.apache.excalibur.source.Source)
protected String absolutize(SourceFactory factory, String baseURI, String systemID)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |