cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <Giacomo.P...@pwr.ch>
Subject Re: Change of the Environment abstraction
Date Wed, 16 Aug 2000 21:43:46 GMT
Stefano Mazzocchi wrote:
> 
> Giacomo Pati wrote:
> >
> > Stefano Mazzocchi wrote:
> > >
> > > Giacomo Pati wrote:
> > > >
> > > > I propose that the Serializer and Reader Interface extend the following
> > > > Interface (as a replacement for the SitemapComponent Interface):
> > > >
> > > >   package org.apache.cocoon.sitemap;
> > > >   public interface SitemapOutputComponent extends Component {
> > > >     public void setOutputStream(OutputStream out) throws IOException;
> > > >   }
> > >
> > > -1
> > >
> > > I still believe that a both need a way to describe their mime-type.
> > >
> > >    package org.apache.cocoon.sitemap;
> > >    public interface SitemapOutputComponent extends Component {
> > >      public void setOutputStream(OutputStream out) throws IOException;
> > >      public String getMimeType();
> > >    }
> >
> > I had a week to reflect most of the Interfaces in C2 (especialy
> > concerning thread savety issues).
> >
> > Opposed to my first suggestion I feel you are all right with this. A
> > Serializer/Reader may have a way to describe its mime-type.
> 
> Cool.
> 
> > What do you think about this:
> >
> >    If getMimeType() returns null the mime-type specified in the sitemap
> > will be taken.
> 
> +1
> 
> > [Where can a mime-type attribute be specified in the sitemap? On a
> > <map:serializer> and a <map:serialize> as well as a <parameter>
to
> > <map:serialize>?]
> 
> I would force it to be a serializer attribute (thus the name).
> 
>  <map:serializer content-type="text/html" .../>

I suppose you meant

  <map:serializer mime-type="text/html" .../>

or would you change the attribute name to 'content-type'?

So, a <map:serialize mime-type="..."/> is not valid but
<map:read mime-type="..."/> certainly is?

And is <map:reader mime-type=".."/> allowed?

Giacomo

-- 
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
Hintereichenstrasse 7                     Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen                    Web:   http://www.pwr.ch

Mime
View raw message