I want to set my application-specific attributes on the client so that the
server can access them. This does not seem to be possible.
If I:
request.getAttributes().put(MY_ATTRIBUTE, value);
on the client, then on the server there are 5 attributes in the map, but they
all belong to org.restlet. My attribute isn't there. One of the attributes
is the org.restlet.http.headers series.
If I do:
Series headers = (Series) request.getAttributes().get(HEADERS_ATTRIBUTE);
headers.add(MY_ATTRIBUTE, value);
request.getAttributes().put(HEADERS_ATTRIBUTE, headers);
Then on the server, all the attributes are gone.
How do I accomplish this feat?