On Sun, Apr 25, 2010 at 21:03, Stephan Roemer <sroemer(a)public-files.de> wrote:
Hi,
I would like to connect small microcontrollers via HTTP to the wiki, but since the MCU
has only 2K RAM we have to minimize the HTTP response to the only necessary byte (about
100 byte). Is there a way to suppress the standard response (with all the stylesheet and
things like that) in a groovy script ?
There is several ways actually:
1) from the client
Use /get/ action instead of /view/
(
http://hostt/xwiki/bin/get/Space/Page) or add xpage=plain to the URL
(
http://hostt/xwiki/bin/get/Space/Page?xpage=plain) to get only the
page content execution without any UI
2) in the script: you can directly manipulate the servlet response object.
Write on
response.getOutputStream()
and set
xcontext.setFinished(true)
when you are done sending datas to indicate to XWiki to not send anything else.
thanks Stephan
--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen:
http://www.gmx.net/de/go/topmail
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne