Re: alternative to response:set-header() ineXist-snapshot-20060316?
Adam Retter <adam.retter <at> devon.gov.uk>
2006-09-01 10:33:44 GMT
You could easily add response:set-header() to your version by doing an in place build.
{ Disclaimer - For saftety I suggest you make a copy of your $EXIST_HOME folder to another machine before attempting this }
Get the SetHeader.java file from SVN or a newer eXist and copy it into your $EXIST_HOME/src/org/exist/xquery/functions/response folder
Edit the file $EXIST_HOME/src/org/exist/xquery/functions/response/ResponseModule.java and add an entry for the set-header() function. I think it will be fairly obvious what you need to add when you look at the file.
Make a backup of your db from the admin client and perhaps a copy of your $EXIST_HOME/webapp/WEB_INF/data directory, we wouldnt want you to loose anything.
Shutdown eXist, then in $EXIST_HOME, just fun ./build.sh (or build.bat if your on windows), this will recompile your eXist in place and add the set-header() function.
Startup eXist and you should be good to go 
-----Original Message-----
From: exist-open-bounces <at> lists.sourceforge.net on behalf of Phillip B Oldham
Sent: Fri 9/1/2006 11:31 AM
To: Dannes Wessels
Cc: eXist ml
Subject: Re: [Exist-open] alternative to response:set-header() ineXist-snapshot-20060316?
Nope... can't get it to return the header I need. Also tried to use
request:stream-binary() to set the header, but I get an empty response and
can't binary64 encode the XML data to stream back.
Any other ideas on how I can output a header?
On 9/1/06, Phillip B Oldham <phillip.oldham <at> gmail.com> wrote:
>
> Thanks Dannes... seems as though the only "header" function I have
> available is request:set-date-header(). I'll give that a go, and see
> whether I can "hack" through it.
>
>
> On 9/1/06, Dannes Wessels <dizzzz <at> gmail.com> wrote:
> >
> > Hi
> >
> > On 9/1/06, Phillip B Oldham <phillip.oldham <at> gmail.com> wrote:
> > > Is there an alternative to response:set-header() in
> > eXist-snapshot-20060316?
> > > I've been looking through the docs, but they've changed recently due
> > to the
> > > new versioning scheme, etc.
> >
> > Your *local* eXist install contains all documentation related to your
> > exist version (http://localhost:8080/exist or so). On www.exist-db.org
> > the documentation is normally in sync with the code archive.
> >
> > Most of the new session: and response: functions came from "response:"
> > once. Please could you check?
> >
> > regards
> >
> > Dannes
> >
> >
> >
> > --
> > # Dannes Wessels # The Netherlands #
> > # Jabber / ICQ / MSN / AIM / Yahoo / google.com/talk #
> >
>
>
>
> --
>
> Phillip B Oldham
> phillip.oldham <at> gmail.com
> +44(0)78 4110 4880
> //refactored.net/ | //iyoti.com/ | //dysfunksion.co.uk/
>
--
Phillip B Oldham
phillip.oldham <at> gmail.com
+44(0)78 4110 4880
//refactored.net/ | //iyoti.com/ | //dysfunksion.co.uk/
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open