Hi Jerome!
Ok so if i understood correctly. I can use Client instance inside my
applications (not restlet meaning of application, but just external app that
contacts my RESTful service) as singleton ?
I can create on instance of clietn, set my settings to it and share it to all
my JSP/classes
Hi,
I'm trying to use the TemplateRepresentation for the Velocity extension as part
of a webapp, but I am having problems configuring the template location. The API
docs for TemplateRepresentation species that only the template name is required
and the full path is resolved by the configuration.
Hi Evgeny,
Yes, you can use a Client instance as a singleton as you describe. There
is no need for a full Restlet application for that.
Cheers,
Jerome
Evgeny Shepelyuk a écrit :
Hi Jerome!
Ok so if i understood correctly. I can use Client instance inside my
applications (not restlet
- Added JAXB 2.0 and StAX 1.0 libraries.
Hi Jerome,
Is there a reason that JAXB 2.1.3 wasn't used?
Thanks,
Sean
Jerome:
That seems like a great solution. I took a look at Response.java and I
really like that you also added a setLocationRef() method, but kept
setRedirectRef() and getRedirectRef(), both for backwards
compatibility and because sometimes those methods really do make
sense. Very nice!
Thanks,
Stuart, I myself had some issues with this recently, when developing
my first Restlet app. However, my app is standalone, i.e. it doesn't
use the Servlet adapter to run inside a Servlet Server, it uses one of
the included extensions to embed an HTTP server. I think that may make
a big difference
Hi Sean,
The reason was that upon JavaSE 6.0 support (with includes JAXB 2.0) in
Restlet 2.0, I wanted to be automatically compatible.
But, now that I think about it again, we could also maintain a JAXB 2.1
extension along with a org.restlet.resource.JaxbRepresentation class added
to Restlet
Hello Julien,
if you want to access files that are located inside your WebContent
directory, you can use the integrated war client just as follow:
Representation rep =
getContext().getDispatcher().get(war:///files/file.xml).getEntity();
and then use the representation as you want.
NB:
8 matches
Mail list logo