Hello Shj,
For example, when you want to trace the server connector attached to a
component:
Component c = new Component();
Server s = new Server(Protocol.HTTP, 8182);
c.getServers().add(s);
s.getContext().getParameters().add("tracing", "true");
When using a ClientResource:
Client client = new Client(new Context(), Protocol.HTTP);
client.getContext().getParameters().add("tracing", "true");
ClientResource pubResource = new ClientResource("
http://localhost:8182/<resource>");
pubResource.setNext(client);
I've added this code to the FAQ:
http://wiki.restlet.org/docs_2.1/13-restlet/24-restlet/333-restlet.html
best regards,
Thierry Boileau
I would really love to know how to turn on trace mode, but I can find no
> documentation. I think I am getting very close. I think I have identified
> what class the parameter is stored in, but now I just need to find out how
> to reference it from a higher level.
>
> It is mentioned in the Abstract Class
>
> http://www.restlet.org/documentation/2.1/jee/engine/org/restlet/engine/connector/BaseHelper.html
> BaseHelper<T>
>
> I have tried
>
> getContext().getParameters().add("tracing", "true");
>
> which does not seem to work. What am I missing?
>
> Shj
>
> --
> View this message in context:
> http://restlet-discuss.1400322.n2.nabble.com/Turning-on-Trace-Mode-tp6324254p6327525.html
> Sent from the Restlet Discuss mailing list archive at Nabble.com.
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2729123
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2730094