cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Change of the Environment abstraction
Date Thu, 17 Aug 2000 22:36:29 GMT
Giacomo Pati wrote:
> 
> 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'?

Well, I'm not sure I like "mime-type" the most... what do you guys
think?

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

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

Good question, but I would say no.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------


Mime
View raw message