Hello,

at this moment the full support of multipart entities is only planned 
(http://restlet.tigris.org/issues/show_bug.cgi?id=71). The issue gives a 
set of pointers to existing solutions.
Having said that, one way to help you is the usage of custom headers. 
They are set by the agent that sends the entity, and are retrieved by 
the agent that get the entity.
In order to send them:
Form form = new Form();
form.add("X_MY_HEADER", value);
request.getAttributes().put(HeaderConstants.ATTRIBUTE_HEADERS, form);

In order to get them:
Form form = (Form) 
request.getAttributes().get(HeaderConstants.ATTRIBUTE_HEADERS);
String value = form.getFirstValue("X_MY_HEADER");

I hope this will help you.

Best regards,
Thierry Boileau

> Hi all,
>    I have written one example. Client side I have taken one file and 
> converted into filerepresentation and posted using client.post method. In 
> server side who to catch that file in @Put and store it disk.
> More over how to pass file related info along with filerepresentation. Is it 
> possible to send one more representation along with file representation. If 
> not how it would be done?.
>
> Thanks in advance.
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2461195
>
>

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

Reply via email to