Hi Ty,

Paul is correct, you need to use the Representation#downloadable property
instead. See this table for all the mappings:

"Mapping HTTP semantics"
http://wiki.restlet.org/docs_1.2/13-restlet/27-restlet/130-restlet.html 

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com


-----Message d'origine-----
De : Paul Austin [mailto:[email protected]] 
Envoyé : dimanche 15 mars 2009 14:11
À : [email protected]
Objet : Re: Set content-location header ??

You also have so set the downloadable flag

Paul

On 14-Mar-09, at 3:42 PM, Ty wrote:

> Hi,
> Restlet (1.2M) is refusing to set the content-location header and I 
> can't seem to find a method that will let me set it.  Does anyone know 
> how to set the content-location header?
>
> Here's the code that I have tried:
>
> // *** Try setting the Content-Location header: restlet refuses with a 
> log warning! *** Series<Parameter> headers = new Form(); 
> headers.add("Content-Location", request.getOriginalRef().toString());
> response.getAttributes().put("org.restlet.http.headers", headers);
>
> // Set the location header: this works 
> response.setLocationRef(locaationURI);
>
> It seems like my code is working but restlet doesn't want to let me 
> set the content-location header.  It wants me to use an API method; 
> but I can't find one.  Any suggestions?
>
> Thanks,
> T
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId
> =1323618

Paul Austin
President/CEO
Revolution Systems Inc.

+1 (604) 288-4304 x201
www.revolsys.com

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=13268
15

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1333470

Reply via email to