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");

Where do you get the objectModel from? A Serializer is supposed to
do one thing only: serialize SAX events to an OutputStream.

Giacomo

>
> 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: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to