cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: AW: [C2][VOTE] Sync C2.0 and C2.1 branches
Date Wed, 05 Sep 2001 08:16:11 GMT
Quoting Carsten Ziegeler <cziegeler@sundn.de>:

> > Giacomo Pati wrote:
> >
> > Quoting Gianugo Rabellino <g.rabellino@bibop.it>:
> >
> > > On Wed, Sep 05, 2001 at 08:38:55AM +0200, Giacomo Pati wrote:
> > > > > >  1) XML:DB Generators - There are two generators in C2.1 for
> > > > > > dealing with data from XML:DB data
> > > > > > sources
> > > > > +0 (These are additional components which do not affect the
> core)
> > > >
> > > > +0 as well. Yes, they don't affect the core. But as it is an XML
> > > stream comming
> > > > from an xmldb what about making it a protocl
> > > (dbxml:/db/mydocs/foo[is='bar'])?
> > >
> > > More than willing to add this feature, but I need to look deep
> inside
> > > Cocoon internals to understand exactly how to do it. Any starting
> > > points? :)
> >
> > I'm not sure if the URLFactory is still the way to go since we
> > have the Source
> > interface (Carsten?).
> >
> There are two possibilities: The URLFactory and the SourceFactory.
> If your protocol can be mapped to an existing (= from the jdk supported
> protocol), e.g. to http, you can simply implement a URL factory.
> The URLFactory would create e.g. from dbxml:/hallo the real URL
> "http://dbserver/hallo".
> Examples for this a the Resource and the Context factory.

Yes, now I remember again. URLFactory is for mapping custom protocols onto a 
real java supported protocol.

> If this is not possible, you have to implement a SourceFactory
> which does not create java.net.URL objects but
> org.apache.cocoon.environment.Source
> objects. Examples for this are the SourceHandlerImpl and the
> CocoonSourceFactory.
> 
> The Source interface is very simple and straightforward, you can
> look at the URLSource implementation.

So, for the dbxml if think a SourceFactory will be the way to go.

Giacomo

> 
> Carsten
> 
> > Giacomo
> >
> > >
> > > Ciao,
> > >
> > > --
> > > Gianugo Rabellino
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > For additional commands, email: cocoon-dev-help@xml.apache.org
> > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message