I am building a service that allows the storage of files on amazon s3 using 
the Restlet framework but I need these files to be private and not public. I 
attempted to add an additional parameter via:

Parameter parameter = new Parameter("X-Amz-Acl", "private");            
request.getAttributes().put("org.restlet.http.headers", parameter);

But it produced the following error:

java.lang.ClassCastException: org.restlet.data.Parameter
        at com.noelios.restlet.http.HttpClientConverter.addRequestHeaders
(HttpClientConverter.java:308)
        at com.noelios.restlet.http.HttpClientConverter.toSpecific
(HttpClientConverter.java:78)
        at com.noelios.restlet.http.HttpClientHelper.handle
(HttpClientHelper.java:78)
        at org.restlet.Client.handle(Client.java:110)

I looked at am example online and the example use ParameterList not Paramter 
but the ParameterList type is not present or has been deprecated, please help 
me with this simple request.

Thank you,
Kappy

Reply via email to