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