It looks like an example might require updating. In the FAQ I see:

5. How can I get the raw HTTP headers if I really need to?

Even though the org.restlet.data.Request and org.restlet.data.Response classes
 provide a convenient and protocol-neutral way to manipulate the information
contained in standard HTTP headers, it is sometimes necessary to access to the 
raw header values or to add non-standard headers. For this purpose, we use 
special request and response attributes, see details in Javadocs of the
 Message.getAttributes() method. There is also a sample code in the distribution
 that illustrates how to get raw headers and how to add non-standard ones, see 
the
 com.noelios.restlet.example.misc.HeadersTest class in the "src" directory.


 Message.getAttributes() returns a MapModel, but the cited example is using
ParameterLists. I think the example is out of date.

Also, I require some clarification. Is it not allowed (or not recommended) to 
use
the method in the example to set standard headers? 

I think it is clearly stated that it is alright to set non-standard headers but
not clear enough regarding standard headers.

Thanks,
Sean 

Reply via email to