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.
*/
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) {
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.
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
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
5 matches
Mail list logo