|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.cocoon.environment.URLFactorySourceResolver
A SourceResolver
based on a URLFactory
.
Field Summary | |
protected org.apache.avalon.framework.component.ComponentManager |
manager
The component manager |
protected URLFactory |
urlFactory
The URL factory |
Constructor Summary | |
URLFactorySourceResolver(org.apache.avalon.framework.component.ComponentManager manager)
Creates an URLFactorySourceResolver with a component manager.
|
|
URLFactorySourceResolver(URLFactory factory,
org.apache.avalon.framework.component.ComponentManager manager)
Creates an URLFactorySourceResolver with a component manager and
a URLFactory that will be used to resolve URLs. |
Method Summary | |
void |
release(org.apache.excalibur.source.Source source)
Releases a resolved resource |
Source |
resolve(java.lang.String systemID)
Resolve the source. |
org.apache.excalibur.source.Source |
resolveURI(java.lang.String location)
Get a Source object. |
org.apache.excalibur.source.Source |
resolveURI(java.lang.String location,
java.lang.String baseURI,
java.util.Map parameters)
Get a Source object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.avalon.framework.component.ComponentManager manager
protected URLFactory urlFactory
Constructor Detail |
public URLFactorySourceResolver(org.apache.avalon.framework.component.ComponentManager manager) throws org.apache.avalon.framework.component.ComponentException
URLFactorySourceResolver
with a component manager.
The URLFactory
is looked up in the component manager.
public URLFactorySourceResolver(URLFactory factory, org.apache.avalon.framework.component.ComponentManager manager)
URLFactorySourceResolver
with a component manager and
a URLFactory
that will be used to resolve URLs.
Method Detail |
public Source resolve(java.lang.String systemID) throws ProcessingException, org.xml.sax.SAXException, java.io.IOException
resolve
in interface SourceResolver
systemID
- This is either a system identifier
(java.net.URL
) or a local file.
ProcessingException
org.xml.sax.SAXException
java.io.IOException
public org.apache.excalibur.source.Source resolveURI(java.lang.String location) throws java.net.MalformedURLException, java.io.IOException, org.apache.avalon.framework.component.ComponentException
Source
object.
java.net.MalformedURLException
java.io.IOException
org.apache.avalon.framework.component.ComponentException
public org.apache.excalibur.source.Source resolveURI(java.lang.String location, java.lang.String baseURI, java.util.Map parameters) throws java.net.MalformedURLException, java.io.IOException, org.apache.avalon.framework.component.ComponentException
Source
object.
java.net.MalformedURLException
java.io.IOException
org.apache.avalon.framework.component.ComponentException
public void release(org.apache.excalibur.source.Source source)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |