Hello stack,
you can you use either DomRepresentation [1] or SAXRepresentation [2]
according to your preference with the following code (sample of POST
request) :
Client client = new Client(Protocol.HTTP);
Response response = client.post(http://localhost:80/essai/;, your
representation);
Hello Jean-Yves,
the maven repository is located at the following URL: maven.restlet.org.
But, at this time, no snapshot of release 1.1 has been published in
Maven since the first public release of restlet 1.1 will be delivered
in a few weeks (release 1.1 M1).
However a zip file can be downloaded
Hi Jerome,
Regarding Jetty, AJP and the client certificates, I submitted a patch a
couple of days ago for Jetty, as there was a small bug:
http://jira.codehaus.org/browse/JETTY-457
I'm please to say Greg Wilkins (Jetty) has already incorporated the
changes in Jetty 6.1.6rc1.
I'll try to
Hi all,
Maybe should also publish snapshots in the Maven repository? If we do
so, we should follow the Maven naming conventions for version numbers.
Note: we don't internally use Maven to build Restlet code base, but we
know how to publish Maven artifacts.
Best regards,
Jerome
2007/11/6,
Hello,
I'd like to model resources using Restlet in a similar way as Section 12
of the tutorial (Reaching target Resources). As a simple example, I'd
like to map URIs like /users/{user}/birthday to read the full name of
a user from a database (or hash-table).
As far as I understand the
Hi Jerome,
I haven't tried any code yet, but I think I found what was going on by
looking at some of the code. What I'm talking about is related to the
first modification mentioned in
http://restlet.tigris.org/issues/show_bug.cgi?id=281
(using getPeerCertificates()).
When using servlets,
Bruno Harbulot wrote:
I could try to write a patch, but since it may modify the API (or at
least the interfaces), it might be better if someone more experienced
with the code does it. I'm going to copy and paste all this in an RFE.
Here it is:
Hi Bruno,
on one hand, you define a route which binds all uris such as
/users/{user}/birthday to a new instance of the BirthdayResource
class.
On the other hand, the resource is in charge to perform the request,
that is to say return a representation (if any) in case of GET
requests, delete the
When I try to undeploy my restlet application from a running servlet
container it can't remove the deployed app completely because it seems
unable to delete com.noelios.restlet.jar from the exploded WAR contents.
I assume there is still some resource in use within the reference
implementation code
Hi Alex,
Thanks for sharing all the details.
1) For the root attachment issue, you can use this approach instead:
// To match only URIs that are strictly equal to /
Template template = router.attach(/, rootRestlet).getTemplate();
template.setMatchingMode(Template.MODE_EQUALS);
// To match all
Jerome Louvel contact at noelios.com writes:
Hi all,
Maybe should also publish snapshots in the Maven repository? If we do
so, we should follow the Maven naming conventions for version numbers.
Note: we don't internally use Maven to build Restlet code base, but we
know how to publish
Hi Rob,
As a benefit of having the JCA process in place
(http://www.restlet.org/community/contribute), we can offer Restlet under
GPL v3 as well.
I've updated the web site to mention this new option:
http://www.restlet.org/about/legal
Best regards,
Jerome
-Message d'origine-
De :
Hi Thierry,
Thierry Boileau wrote:
on one hand, you define a route which binds all uris such as
/users/{user}/birthday to a new instance of the BirthdayResource
class.
On the other hand, the resource is in charge to perform the request,
that is to say return a representation (if any) in case of
Hi all,
The refactoring based on this discussion is done in SVN trunk. See this
issue for few more details:
http://restlet.tigris.org/issues/show_bug.cgi?id=361
I've also updated the 1.1 snapshot at:
http://www.restlet.org/downloads/1.1/current.zip
Best,
Jerome
14 matches
Mail list logo