|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.environment.URLFactorySourceResolver
public class URLFactorySourceResolver
A SourceResolver
based on a URLFactory
.
Field Summary | |
---|---|
protected ComponentManager |
manager
Deprecated. The component manager |
protected URLFactory |
urlFactory
Deprecated. The URL factory |
Fields inherited from interface org.apache.excalibur.source.SourceResolver |
---|
METHOD, ROLE, URI_ENCODING, URI_PARAMETERS |
Constructor Summary | |
---|---|
URLFactorySourceResolver(ComponentManager manager)
Deprecated. Creates an URLFactorySourceResolver with a component manager. |
|
URLFactorySourceResolver(URLFactory factory,
ComponentManager manager)
Deprecated. Creates an URLFactorySourceResolver with a component manager and
a URLFactory that will be used to resolve URLs. |
Method Summary | |
---|---|
void |
release(Source source)
Deprecated. Releases a resolved resource |
Source |
resolve(String systemID)
Deprecated. Resolve the source. |
Source |
resolveURI(String location)
Deprecated. Get a Source object. |
Source |
resolveURI(String location,
String baseURI,
Map parameters)
Deprecated. Get a Source object. |
void |
toSAX(Source source,
ContentHandler handler)
Deprecated. Generates SAX events from the given source NOTE : if the implementation can produce lexical events, care should be taken that handler can actually
directly implement the LexicalHandler interface! |
void |
toSAX(Source source,
String mimeTypeHint,
ContentHandler handler)
Deprecated. Generates SAX events from the given source NOTE : if the implementation can produce lexical events, care should be taken that handler can actually
directly implement the LexicalHandler interface! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ComponentManager manager
protected URLFactory urlFactory
Constructor Detail |
---|
public URLFactorySourceResolver(ComponentManager manager) throws ComponentException
URLFactorySourceResolver
with a component manager.
The URLFactory
is looked up in the component manager.
ComponentException
public URLFactorySourceResolver(URLFactory factory, ComponentManager manager)
URLFactorySourceResolver
with a component manager and
a URLFactory
that will be used to resolve URLs.
Method Detail |
---|
public Source resolve(String systemID) throws ProcessingException, SAXException, IOException
systemID
- This is either a system identifier
(java.net.URL
) or a local file.
ProcessingException
SAXException
IOException
public Source resolveURI(String location) throws MalformedURLException, IOException, SourceException
Source
object.
resolveURI
in interface SourceResolver
MalformedURLException
IOException
SourceException
public Source resolveURI(String location, String baseURI, Map parameters) throws MalformedURLException, IOException, SourceException
Source
object.
resolveURI
in interface SourceResolver
MalformedURLException
IOException
SourceException
public void release(Source source)
release
in interface SourceResolver
public void toSAX(Source source, ContentHandler handler) throws SAXException, IOException, ProcessingException
handler
can actually
directly implement the LexicalHandler interface!
source
- the data
ProcessingException
- if no suitable converter is found
SAXException
IOException
public void toSAX(Source source, String mimeTypeHint, ContentHandler handler) throws SAXException, IOException, ProcessingException
handler
can actually
directly implement the LexicalHandler interface!
source
- the data
ProcessingException
- if no suitable converter is found
SAXException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |