Hello Pierre,

this header is to be used on responses onnly according to the HTTP spec. 
I've just added an issue for the support on request: 
http://restlet.tigris.org/issues/show_bug.cgi?id=1049
As a workaround, you can  get the content-disposition header from the 
request's attributes:
         Disposition d = null;
         Series<Parameter> headers = (Series) 
request.getAttributes().get("org.restlet.http.headers");
         String header = 
headers.getFirstValue(HeaderConstants.HEADER_CONTENT_DISPOSITION);
         if (header != null) {
             try {
                 d = new DispositionReader(header).readDisposition();
             } catch (IOException e) {
                 d = null;
             }
         }


Best regards,
Thierry Boileau

> 2.0 m7 (android and Jee)
>
> regards,
> Pierre
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2450994
>
>

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

Reply via email to