cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Koen Pellegrims <koen.pellegr...@pandora.be>
Subject Re: Serializers sending Headers?
Date Wed, 27 Feb 2002 14:09:32 GMT
Cocoon in general and serializers specifically are not limited to the
HTTP-protocol...
What will you do if your serializer is used when Cocoon is called from the
command-line?
A serializer must serialize only content, and not mess with the transport
layer...

K.

On Wed, 27 Feb 2002, James Burton wrote:

> Hi all,
>
> I'm coding a custom serializer now, and I am wondering
> if I am allowed to send an arbitrary HTTP header from
> the serializer code?  In particular I'd like to send a
> "Location: xxxx" header, but I may want to send
> others.  I think I can accomplish this with these
> lines:
>
>  Response response = (Response)
>     objectModel.get(Constants.RESPONSE_OBJECT);
>  response.setHeader("Some-Header", "value");
>
> But even if that works, is it "legal"?
>
> Thanks from Prague,
> James Burton
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Greetings - Send FREE e-cards for every occasion!
> http://greetings.yahoo.com
>
> ---------------------------------------------------------------------
> 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