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();

Re: How to set response header

2012-02-09 Thread Tim Peierls
There have been some changes in the types involved. The object returned by Response/Request.getAttributes().get(org.restlet.http.headers) is a SeriesHeader, not a Form, which is a SeriesParameter. Because of type erasure, there is no runtime problem until the Restlet Engine tries to make use of