I figured out one thing that wasn't obvious to me. I needed to use the
extension org.restlet.ext.httpclient. Now I have the httpclient working,
but I still need to understand how to globally configure it.
Richard
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/How
To add more information, here is a stack trace from an exception when a
client connector tries to write. I would expect to see an apache HttpClient
class here, if indeed httpClient were being used.
[INFO] [talledLocalContainer] Sep 1, 2010 1:39:39 PM
org.restlet.engine.http.connector.Connection w
I have read through the connectors page. But it shows no example of a global
configuration. The example shows a per-client configuration.
Client client = new Client(new Context(), Protocol.HTTP);
client.getContext().getParameters().add("useForwardedForHeader",
"false");
I
I have read this:
http://www.restlet.org/documentation/2.0/jse/ext/org/restlet/ext/httpclient/HttpClientHelper.html
But, after a lot of searching, I have found no examples how this is actually
configured.
Secondly, I want to use the org.apache.httpcomponents httpclient for
ClientResouce connecto
Now that I'm able to manage ServerResources in Spring and route requests to
them, I have run into yet another problem. My server resources have no
Restlet Context! Since Spring is creating them, like this:
The sampleResource has no Context. So when I call getCo
I followed this example
http://www.bagdemir.com/2009/09/11/spring-mvc-restlet-integration-on-tomcat/
It's a little old, but I was able to adapt it.
One change I suggest is instead of the name 'rservlet.xml' use
applicationContext-rservlet.xml and then Spring naturally finds it.
--
View this me
I really need help getting this to work. The examples I've found refer to a
restlet Resource, which is deprecated. For example:
http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/70-restlet/196-restlet.html
I think I need to use RestletFrameworkServlet. But I have not found a good
example.
Just starting with Restlet and Spring in Tomcat container. I have a Spring
MVC web application to which I wish to add Restlet support on some URL
paths. I have the Restlet In Action MEAP book. I set up
org.restlet.ext.servlet.ServerServlet in web.xml to init either a restlet
application or compo
8 matches
Mail list logo