You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by TREGAN Fabien <fa...@airbus.com> on 2002/04/25 16:08:14 UTC
URL Factory vs Source Handler
Hi,
>From cocoon.xconf :
<!-- URL Factory:
The url factory adds special url protocols to the system, they are then
available inside Cocoon, e.g. as a source argument for one of the
sitemap
components.
-->
<!-- Source Handler:
The source handler adds special url protocols to the system, they are
then available inside Cocoon, e.g. as a source argument for one of the
sitemap components.
-->
ok, so how do I choose between URL Factory and Source Handler ? Is the only
difference that SourceS are dom/sax compliants when resources can be
anything ?
Is it only possible to use a Source via SourceFactory registered with its
protocol in the SourceHandler or are there other ways ? (and if
answer=="yes", how come that there is no SitemapSourceFactory ? special case
due to SitemapSource loaded to early and then using a default protocol ?)
Is there any other starting point for coding my first Source than cocoon
SourceS' sources ?
thx, fabien.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: URL Factory vs Source Handler
Posted by Berin Loritsch <bl...@apache.org>.
TREGAN Fabien wrote:
> Hi,
>
>>>From cocoon.xconf :
>
> <!-- URL Factory:
> The url factory adds special url protocols to the system, they are then
> available inside Cocoon, e.g. as a source argument for one of the
> sitemap
> components.
> -->
>
> <!-- Source Handler:
> The source handler adds special url protocols to the system, they are
> then available inside Cocoon, e.g. as a source argument for one of the
> sitemap components.
> -->
>
> ok, so how do I choose between URL Factory and Source Handler ? Is the only
> difference that SourceS are dom/sax compliants when resources can be
> anything ?
Use the SourceHandler. Cocoon has donated the Source resolving code to
Avalon Excalibur, and they have cleaned it up and made it more general
purpose. Cocoon will be using the Excalibur version of source
resolving, and URL Factory will go away.
>
> Is it only possible to use a Source via SourceFactory registered with its
> protocol in the SourceHandler or are there other ways ? (and if
> answer=="yes", how come that there is no SitemapSourceFactory ? special case
> due to SitemapSource loaded to early and then using a default protocol ?)
>
> Is there any other starting point for coding my first Source than cocoon
> SourceS' sources ?
>
> thx, fabien.
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: URL Factory vs Source Handler
Posted by Carsten Ziegeler <cz...@s-und-n.de>.
TREGAN Fabien wrote:
>
> Hi,
>
> From cocoon.xconf :
>
> <!-- URL Factory:
> The url factory adds special url protocols to the system,
> they are then
> available inside Cocoon, e.g. as a source argument for one of the
> sitemap
> components.
> -->
>
> <!-- Source Handler:
> The source handler adds special url protocols to the system, they are
> then available inside Cocoon, e.g. as a source argument for one of the
> sitemap components.
> -->
>
> ok, so how do I choose between URL Factory and Source Handler ?
> Is the only
> difference that SourceS are dom/sax compliants when resources can be
> anything ?
>
The URL Factory was the first implementation of source resolving for Cocoon,
it was later on replaced by the source handlers, but left there for
compatibility. So the Source handler is the way to go.
The source resolving of Cocoon was donated to avalon excalibur and was
there redefined for general purpose. Currently we are in the process
of installing the avalon excalibur source resolving. This will replace
the source handler, too. But of course source handlers written for
Cocoon will be usable with the new architecture.
> Is it only possible to use a Source via SourceFactory registered with its
> protocol in the SourceHandler or are there other ways ? (and if
> answer=="yes", how come that there is no SitemapSourceFactory ?
> special case
> due to SitemapSource loaded to early and then using a default protocol ?)
>
The official way is to use the SourceFactory. The cocoon protocol
(SitemapSource)
is added to the system via a well-defined "back-door". This will be
complete removed soon and is not the intended way.
Carsten
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>