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();
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,
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
3 matches
Mail list logo