b19 - Call converters

2006-09-14 Thread Lars Heuer
Hi Jerome Co., Here an excerpt of a class I use nearly for all projects where Restlet is involved: public class Headers { /** * Constructor that wraps a [EMAIL PROTECTED] org.restlet.data.ParameterList}. * * @param paramList The parameter list instance to wrap. */

Re: b19 - Call converters

2006-09-14 Thread Lars Heuer
Hi again, one follow-up: ((HttpServerRestletCall) call).getConnectorCall().getRequestHeaders() only works with unwrapped calls. That's why I suggested to make WrapperCall#getWrappedCall() public. If it is public I could do something like this: if (call instanceof WrapperCall) {

RE: b19 - Call converters

2006-09-14 Thread Jerome Louvel
Hi Lars, The call converters give you access to all the raw HTTP headers. If you need the value of some of them (probably in the case of non-standard HTTP headers?) in your Restlets, then you need to *push* them to the uniform Call instance. This is what the sample converter code demonstrates.

RE: b19 - Call converters

2006-09-14 Thread Jerome Louvel
Hi again :) The getWrappedCall() method has been changed to protected in order to provide a stricter encapsulation. It's like preventing some client code to manually access to the members of an object without going through the proper method. However, I don't want to sound too dogmatic: if

Re: b19 - Call converters

2006-09-14 Thread Lars Heuer
Hi Jerome, [...] the value of some of them (probably in the case of non-standard HTTP headers?) in your Restlets, then you need to *push* them to the uniform Call instance. This is what the sample converter code demonstrates. Yes. But I cannot give my restlet to another developer and it just