Verifying Content-MD5

2010-05-19 Thread Jean-Philippe Steinmetz
Hello, I have a simple question. Does the restlet server connector verify Content-MD5 headers by default? If not, is there a setting or filter I can enable to make sure that it does? Jean-Philippe --

Content Negotiation

2010-05-17 Thread Jean-Philippe Steinmetz
Hi, I've implemented a ServerResource class where I override both the *get() *and *get(Variant variant) *methods. I consider the *get(Variant variant) *method to be the primary responder for incoming requests as all content types should be negotiated and I use the basic *get() *as a fallback to

Re: Content Negotiation

2010-05-17 Thread Jean-Philippe Steinmetz
This turns out to be my fault. I am overriding the doHandle(Variant variant) function and accidentally was calling super.doHandle() instead of super.doHandle(variant). On Mon, May 17, 2010 at 12:35 PM, Jean-Philippe Steinmetz caskate...@gmail.com wrote: Hi, I've implemented a ServerResource

Re: Amazon S3 Auth

2010-05-14 Thread Jean-Philippe Steinmetz
implemented for the moment. Best regards, Thierry Boileau Hi, I'm using Amazon S3 authentication in my web application. I'm looking to moving to restlet 2.0 from 1.1 and was wondering if there is finally a server side implementation of the authentication protocol? Jean-Philippe Steinmetz

Re: Amazon S3 Auth

2010-05-13 Thread Jean-Philippe Steinmetz
, Thierry Boileau Hi, I'm using Amazon S3 authentication in my web application. I'm looking to moving to restlet 2.0 from 1.1 and was wondering if there is finally a server side implementation of the authentication protocol? Jean-Philippe Steinmetz

Amazon S3 Auth

2010-05-07 Thread Jean-Philippe Steinmetz
Hi, I'm using Amazon S3 authentication in my web application. I'm looking to moving to restlet 2.0 from 1.1 and was wondering if there is finally a server side implementation of the authentication protocol? Jean-Philippe Steinmetz -- http

Re: Client Custom Header

2010-05-05 Thread Jean-Philippe Steinmetz
, Jean-Philippe Steinmetz caskate...@gmail.com wrote: Hi Stephan, Thank you for the response. I've implemented a filter and created one while setting the next property to be my client but I am not getting any calls to the beforeHandle function. My code looks like the following. class

Retrying requests

2010-05-05 Thread Jean-Philippe Steinmetz
Hello everyone, I have a restlet resource that sometimes produces an exception during processing. Since the exception is the fault of the server and not the fault of the client I would like to retry the request. When an exception occurs I get rolled back all the way to the Finder. In the Finder's

Re: Retrying requests

2010-05-05 Thread Jean-Philippe Steinmetz
something in particular that makes this a bad strategy? -Matt On May 5, 2010, at 8:45 PM, Jean-Philippe Steinmetz wrote: Hello everyone, I have a restlet resource that sometimes produces an exception during processing. Since the exception is the fault of the server and not the fault

Re: Client Custom Header

2010-05-04 Thread Jean-Philippe Steinmetz
it to every outgoing request? Also please note it is *not* possible to set the cookie on the server side. On Mon, May 3, 2010 at 5:24 PM, Jean-Philippe Steinmetz caskate...@gmail.com wrote: Hi Stephan, Thank you for the response. I've implemented a filter and created one while setting the next

Re: Client Custom Header

2010-05-03 Thread Jean-Philippe Steinmetz
request via the filter. (I hope that's right ...) best regards Stephan Jean-Philippe Steinmetz schrieb: Hi, I'm trying to add a custom HTTP header to outgoing requests when using the restlet client API. Ideally i'm looking for some way to implement a helper class that can inject my

Client Custom Header

2010-04-30 Thread Jean-Philippe Steinmetz
what i'm looking for. I see in the FAQ it's possible to access headers but this seems to be from the server perspective. How do I get access from a client perspective? Thanks in advance, Jean-Philippe Steinmetz -- http://restlet.tigris.org/ds

Representation for multiple types?

2010-01-22 Thread Jean-Philippe Steinmetz
Hello all, We're using restlet 1.1.6 and for all our resources we want to support a dynamic set of media types. We do this in our Spring configuration by setting up a list of acceptable media types. My question is if there is a Representation class I can use that will essentially accept any type

Re: Representation for multiple types?

2010-01-22 Thread Jean-Philippe Steinmetz
:50 PM, Jean-Philippe Steinmetz wrote: Hello all, We're using restlet 1.1.6 and for all our resources we want to support a dynamic set of media types. We do this in our Spring configuration by setting up a list of acceptable media types. My question is if there is a Representation class I

Re: Representation for multiple types?

2010-01-22 Thread Jean-Philippe Steinmetz
22, 2010, at 6:00 PM, Jean-Philippe Steinmetz wrote: Thank you for the quick reply. This certainly would resolve the issue but it doesn't really offer the kind of solution I was hoping for. With this solution i'd still have to do a mapping of media type to some representation which is what I

Opening transactions per resource

2009-12-11 Thread Jean-Philippe Steinmetz
the resource? Is there a way to override the resource router or is there some already built-in mechanism that I need to enable or set up? Thanks in advance, Jean-Philippe Steinmetz -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId

Re: Opening transactions per resource

2009-12-11 Thread Jean-Philippe Steinmetz
@Transactional to take affect at a higher level than the resource? Is there a way to override the resource router or is there some already built-in mechanism that I need to enable or set up? Thanks in advance, Jean-Philippe Steinmetz -- http

Re: Opening transactions per resource

2009-12-11 Thread Jean-Philippe Steinmetz
Peierls tpeie...@gmail.com wrote: Wouldn't it be just a matter of calling a single private method at the top of each of the method handlers? --tim On Fri, Dec 11, 2009 at 4:49 PM, Jean-Philippe Steinmetz caskate...@gmail.com wrote: Good question. We use the init to verify the resource

Re: Opening transactions per resource

2009-12-11 Thread Jean-Philippe Steinmetz
{ ... @Transactional public void handle(Request req, Response rsp) { super(req, rsp); } } I haven't checked to see if this really works, though. --tim On Fri, Dec 11, 2009 at 5:01 PM, Jean-Philippe Steinmetz caskate...@gmail.com wrote: Like I said we could do that though it still

Re: Opening transactions per resource

2009-12-11 Thread Jean-Philippe Steinmetz
extends Finder { ... @Transactional public void handle(Request req, Response rsp) { super(req, rsp); } } I haven't checked to see if this really works, though. --tim On Fri, Dec 11, 2009 at 5:01 PM, Jean-Philippe Steinmetz caskate...@gmail.com wrote: Like I said we could do

Re: Overriding HTTP headers

2009-02-02 Thread Jean-Philippe Steinmetz
developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -- *De :* Jean-Philippe Steinmetz [mailto:caskate...@gmail.com] *Envoyé :* samedi 31 janvier 2009 00:39 *À :* discuss@restlet.tigris.org *Objet :* Re: Overriding HTTP

Re: Overriding HTTP headers

2009-01-30 Thread Jean-Philippe Steinmetz
mail diagonally I think you need to add the method parameter to your query string (in combination with POST requests): http://host/path?method=PUT http://host/path?method=DELETE (You should have the tunnel service enabled) HTH, Karel On Fri, Jan 30, 2009 at 8:00 AM, Jean-Philippe

Re: Overriding HTTP headers

2009-01-30 Thread Jean-Philippe Steinmetz
On Fri, Jan 30, 2009 at 8:00 AM, Jean-Philippe Steinmetz caskate...@gmail.com wrote: Hello again, One of my REST clients will be a Flash application. As some or all of you are aware Flash's URLRequest is a bit broken in that it doesn't fully support the HTTP protocol. I have tried using

Overriding HTTP headers

2009-01-29 Thread Jean-Philippe Steinmetz
Hello again, One of my REST clients will be a Flash application. As some or all of you are aware Flash's URLRequest is a bit broken in that it doesn't fully support the HTTP protocol. I have tried using arc90restlib that Jerome suggested at http://lab.arc90.com/2008/03/restservice.php but

Re: Auto-Attachment of Resources to Router

2009-01-27 Thread Jean-Philippe Steinmetz
the bean is fully set up? On Fri, Jan 23, 2009 at 12:07 PM, Jean-Philippe Steinmetz caskate...@gmail.com wrote: Excellent that works. One more quick question. I noticed that I had to remove all the original constructors for Resources that took parameters. I perform my data look up

Re: Auto-Attachment of Resources to Router

2009-01-23 Thread Jean-Philippe Steinmetz
property name=bodyPartsDao ref=assetDao/ /bean /beans Any ideas what could be wrong? Jean-Philippe On Wed, Jan 21, 2009 at 11:13 PM, Rhett Sutphin rh...@detailedbalance.netwrote: Hi Jean-Philippe, On Jan 21, 2009, at 1:07 PM, Jean-Philippe Steinmetz wrote: Quick question about

Re: Returning data after PUT/POST

2009-01-23 Thread Jean-Philippe Steinmetz
with serialization. I don't want to speak for Donald, but I think he was just providing an example representation to make his suggestions more concrete. You should tune your representation to the requirements of your application, of course. Rhett On Jan 21, 2009, at 12:56 PM, Jean-Philippe Steinmetz

Re: Auto-Attachment of Resources to Router

2009-01-23 Thread Jean-Philippe Steinmetz
Sutphin rh...@detailedbalance.net wrote: Hi Jean-Philippe, On Jan 21, 2009, at 1:07 PM, Jean-Philippe Steinmetz wrote: Quick question about attaching URI patterns and resource classes to the router. Is there a way to make this happen more automagically with annotations or some other

Re: RESTlet + Spring

2009-01-21 Thread Jean-Philippe Steinmetz
-- *De :* Jean-Philippe Steinmetz [mailto:caskate...@gmail.com] *Envoyé :* mardi 20 janvier 2009 22:42 *À :* discuss@restlet.tigris.org *Objet :* Re: RESTlet + Spring I'm using maven to manage all the dependencies. It's possible something is incorrectly done in my pom. For Spring

Re: RESTlet + Spring

2009-01-21 Thread Jean-Philippe Steinmetz
developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -- *De :* Jean-Philippe Steinmetz [mailto:caskate...@gmail.com] *Envoyé :* mardi 20 janvier 2009 23:57 *À :* discuss@restlet.tigris.org *Objet :* Re: RESTlet + Spring Ok i've

Auto-Attachment of Resources to Router

2009-01-21 Thread Jean-Philippe Steinmetz
Hello again, Quick question about attaching URI patterns and resource classes to the router. Is there a way to make this happen more automagically with annotations or some other mechanism? Adding each one by hand will get unwieldy and requires touching the main Application class every time I want

Re: Returning data after PUT/POST

2009-01-21 Thread Jean-Philippe Steinmetz
Thanks for all the help. If you are both suggesting using POST to add an entry why use PUT then? It seems to make PUT somewhat irrelevant unless performing an update. I'm going to have to do some rethinking. I'm mainly using this rest service for passing serialized objects back and forth between

Re: Returning data after PUT/POST

2009-01-20 Thread Jean-Philippe Steinmetz
.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.2 HTH, Karel On Fri, Jan 16, 2009 at 2:37 AM, Jean-Philippe Steinmetz caskate...@gmail.com wrote: Hello everyone, I'm currently working on my first restlet application and have one big question. Typically when I want to persist some

RESTlet + Spring

2009-01-20 Thread Jean-Philippe Steinmetz
Hi All, I'm working on integrating restlet and spring for use in a web app to be run under Tomcat. After reading up on the Spring extension (thank you Jerome) I have decided to go the restlet as the main controller route. This is due to the fact that Spring is only being used as a Dao

Re: RESTlet + Spring

2009-01-20 Thread Jean-Philippe Steinmetz
. If it's not that, would you please let us know what versions of Spring and Restlet you are using? Rhett On Jan 20, 2009, at 1:04 PM, Jean-Philippe Steinmetz wrote: Hi All, I'm working on integrating restlet and spring for use in a web app to be run under Tomcat. After reading up

Returning data after PUT/POST

2009-01-15 Thread Jean-Philippe Steinmetz
Hello everyone, I'm currently working on my first restlet application and have one big question. Typically when I want to persist some data I will not know certain information about it (i.e. the ID of the data). Instead of creating the object and searching for it I usually design my DAO to return