incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Strässer <oliver.straes...@getunik.com>
Subject AW: Scala Page and Cookies
Date Wed, 12 Jan 2011 16:57:53 GMT
Hi tsuy

i tried your approach today.
I retrieve from the RequestProperties. getHttpHeaders method only a MultivaluedMap.
So I havn't access to the cookies.

Isn't the a way to access the javax.ws.rs.core.HttpHeaders object in ssp?


oli


-----Ursprüngliche Nachricht-----
Von: Tsuyoshi Ito [mailto:tsuy.ito@trialox.org] 
Gesendet: Donnerstag, 23. Dezember 2010 18:08
An: clerezza-dev@incubator.apache.org
Betreff: Re: Scala Page and Cookies

Hi Oli

There is the possibility to retrieve some of the header information
from requestProperties (an inner class in
org.apache.clerezza.platform.typerendering.Renderlet)

e.g. you can use requestProperties.getHttpHeaders in your ssp

But I haven't used it yet. So I am not sure if it is possible to set
or read cookies - also I am not sure if this task should be done in
ssp.

Cheers
Tsuy

2010/12/23 Oliver Strässer <oliver.straesser@getunik.com>:
> some ideas?
>
> Von: Oliver Strässer
> Gesendet: Mittwoch, 22. Dezember 2010 09:29
> An: clerezza-dev@incubator.apache.org
> Betreff: Scala Page and Cookies
>
> Hi
>
> I need to write and read Cookies, while I render the  scala server page.
> Is there a posibility to retrieve the request object and the response bject in scala?
>
> cheers
> oli
>
>
>
>
> --[cid:image001.png@01CBA1BA.ADAA76D0]<http://twitter.com/getunik>-[cid:image002.png@01CBA1BA.ADAA76D0]<http://www.facebook.com/pages/getunikcom/124320320041>----------------------------------------------
>
> --getunik ag-------------------------------------------
>
>  oliver straesser              oliver.straesser@getunik.com<mailto:oliver.straesser@getunik.com>
>  hardturmstrasse 101    fon: +41 (0)44 388 55 88
>  ch-8005 zuerich              fax: +41 (0)44 388 55 89
>
>   --aktuelles getunik projekt-------------------------
>   Agieren Sie lokal! Geo Marketing für Ihre E-Mail Kampagne: www.geomarketing.com<http://www.geomarketing.com/>
>
>  --best of swiss web awards 2009------------------
>   Gold & Silber für Connect2Earth / Bronze für WWF UK
>
> we make the web a better place - www.getunik.com<http://www.getunik.com/>
>
>
>
>
> *****************************************************************
> P Bitte drucken Sie dieses E-Mail nur bei Bedarf aus. Die Umwelt dankt es Ihnen.
> *****************************************************************
>
>



-- 
--trialox ag--------------------------------------

Tsuyoshi Ito
Binzmuehlestrasse 14
CH-8050 Zürich
Tel. +41 44 635 75 77
URL: http://trialox.org

Mime
View raw message