Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 33860 invoked by uid 500); 27 Feb 2002 18:57:57 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 33842 invoked from network); 27 Feb 2002 18:57:56 -0000 Date: Wed, 27 Feb 2002 19:57:40 +0100 (CET) From: giacomo X-X-Sender: To: , Subject: Re: Serializers sending Headers? In-Reply-To: <20020227135950.65062.qmail@web14602.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: 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