|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.util.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 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 ServiceManager |
getComponentLocator()
Get the component locator. |
protected SourceFactory |
getSourceFactory(ServiceManager 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.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
| 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
| Constructor Detail |
public CocoonSourceResolver()
| Method Detail |
public void contextualize(Context context)
throws ContextException
contextualize in interface ContextualizableContextExceptionContextualizable.contextualize(org.apache.avalon.framework.context.Context)
public Source resolveURI(String location,
String baseURI,
Map parameters)
throws IOException
resolveURI in interface SourceResolverMalformedURLException - if unable to parse location URI
IOExceptionSourceResolver.resolveURI(java.lang.String, java.lang.String, java.util.Map)
public Source resolveURI(String location)
throws IOException
resolveURI in interface SourceResolverMalformedURLException - if unable to parse location URI
IOExceptionSourceResolver.resolveURI(java.lang.String)
public void service(ServiceManager manager)
throws ServiceException
service in interface ServiceableServiceExceptionServiceable.service(org.apache.avalon.framework.service.ServiceManager)public void dispose()
dispose in interface DisposableDisposable.dispose()protected ServiceManager getComponentLocator()
protected SourceFactory getSourceFactory(ServiceManager m,
String scheme)
throws org.apache.cocoon.ProcessingException
org.apache.cocoon.ProcessingExceptionpublic void release(Source source)
release in interface SourceResolverSourceResolver.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 | ||||||||||