org.apache.cocoon.environment
Class URLFactorySourceResolver

java.lang.Object
  extended by org.apache.cocoon.environment.URLFactorySourceResolver
All Implemented Interfaces:
SourceResolver

Deprecated. by the new source resolving

public class URLFactorySourceResolver
extends Object
implements SourceResolver

A SourceResolver based on a URLFactory.

Version:
CVS $Id: URLFactorySourceResolver.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Sylvain Wallez

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

manager

protected ComponentManager manager
Deprecated. 
The component manager


urlFactory

protected URLFactory urlFactory
Deprecated. 
The URL factory

Constructor Detail

URLFactorySourceResolver

public URLFactorySourceResolver(ComponentManager manager)
                         throws ComponentException
Deprecated. 
Creates an URLFactorySourceResolver with a component manager. The URLFactory is looked up in the component manager.

Throws:
ComponentException

URLFactorySourceResolver

public URLFactorySourceResolver(URLFactory factory,
                                ComponentManager manager)
Deprecated. 
Creates an URLFactorySourceResolver with a component manager and a URLFactory that will be used to resolve URLs.

Method Detail

resolve

public Source resolve(String systemID)
               throws ProcessingException,
                      SAXException,
                      IOException
Deprecated. 
Resolve the source.

Parameters:
systemID - This is either a system identifier (java.net.URL) or a local file.
Throws:
ProcessingException
SAXException
IOException

resolveURI

public Source resolveURI(String location)
                  throws MalformedURLException,
                         IOException,
                         SourceException
Deprecated. 
Get a Source object.

Specified by:
resolveURI in interface SourceResolver
Throws:
MalformedURLException
IOException
SourceException

resolveURI

public Source resolveURI(String location,
                         String baseURI,
                         Map parameters)
                  throws MalformedURLException,
                         IOException,
                         SourceException
Deprecated. 
Get a Source object.

Specified by:
resolveURI in interface SourceResolver
Throws:
MalformedURLException
IOException
SourceException

release

public void release(Source source)
Deprecated. 
Releases a resolved resource

Specified by:
release in interface SourceResolver

toSAX

public void toSAX(Source source,
                  ContentHandler handler)
           throws SAXException,
                  IOException,
                  ProcessingException
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!

Parameters:
source - the data
Throws:
ProcessingException - if no suitable converter is found
SAXException
IOException

toSAX

public void toSAX(Source source,
                  String mimeTypeHint,
                  ContentHandler handler)
           throws SAXException,
                  IOException,
                  ProcessingException
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!

Parameters:
source - the data
Throws:
ProcessingException - if no suitable converter is found
SAXException
IOException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.