How to set response header

2012-02-09 Thread Michael Kaye
Previous to the 2.0.11, I was able to set the responseHeaders as follows. Form responseHeaders = (Form) getResponse().getAttributes().get(org.restlet.http.headers); if ( responseHeaders == null ) { responseHeaders = new Form();

Adding response headers in restlet 2.1.x

2012-01-31 Thread Michael Kaye
Previously in 2.0.x, I added response headers as follows, Form responseHeaders = (Form) getResponse().getAttributes().get(org.restlet.http.headers); if (responseHeaders == null) { responseHeaders = new Form(); getResponse().getAttributes().put(org.restlet.http.headers,

Upload an image to GAE

2011-05-27 Thread Michael Kaye
There's a very good description of how to upload and store an image on GAE using a regular HttpServlet at http://stackoverflow.com/questions/1513603/how-to-upload-and-store-an-image-with-google-app-engine-java . How can this be adapted to a restlet... e.g. @Override public