Re: RIAP protocol and local Representions

2010-02-21 Thread Valdis Rigdon
@restlet.tigris.org Objet : Re: RIAP protocol and local Representions We use a lot of RIAP but very little ConverterService ... that might change if it worked more like you expect out of the box. On Mon, Jan 25, 2010 at 2:17 PM, Valdis Rigdon valdis.rig...@gmail.com wrote: Is no one else using RIAP

Re: RIAP protocol and local Representions

2010-01-25 Thread Valdis Rigdon
Thierry, Sounds like this isn't something that's (fully) supported out of the box, which I'm a bit surprised by. Is no one else using RIAP in this way? Or are people using RIAP and letting objects be serialized locally? While this seems to work for me, I'm curious of other use cases. I'll go

RIAP protocol and local Representions

2010-01-24 Thread Valdis Rigdon
I can't seem to phrase my question the way I want, so I'm giving some background along with the question(s) and hopefully it make sense to someone. I am designing an API around REST resources, using Restlet as the core. I'm using the new annotation based client side interfaces, using

Re: Restlet GWT RPC 2.0

2010-01-16 Thread Valdis Rigdon
I'm still seeing these on the latest snapshots as well. As a workaround, I've been using the GWT version bundled with the example serialization application from the wiki, but using the snapshot versions for other editions. That seems to work fine for me, at least in the short term. Valdis

Re: Restlet GWT RPC 2.0

2010-01-07 Thread Valdis Rigdon
. If I remove those libraries and replace them with latest snapshot from Jan 06, add in the inherits for XML and JSON, then it breaks with the errors below. Any ideas? On Wed, Jan 6, 2010 at 2:02 PM, Valdis Rigdon valdis.rig...@gmail.com wrote: I'm puttting together a sample project too, but I'm

Directory

2008-01-14 Thread Valdis Rigdon
I'm looking for a little help in trying to implement a solution with Directory -- maybe someone on this list has done this before; I've tried a number of ways but nothing seems to work quite right. Note that we are using version 1.0.7, not 1.1. My use case involves exposing the log4j logs

Re: Directory

2008-01-14 Thread Valdis Rigdon
getIndexVariants() to add APPLICATION_ZIP in addition to overriding getIndexRepresentation()? Kevin On Jan 14, 2008 8:34 AM, Valdis Rigdon [EMAIL PROTECTED] wrote: I'm looking for a little help in trying to implement a solution with Directory -- maybe someone on this list has done this before

Re: Directory

2008-01-14 Thread Valdis Rigdon
next step. Is isListingAllowed() true on your Directory instance? Yep. On Jan 14, 2008 9:46 AM, Valdis Rigdon [EMAIL PROTECTED] wrote: Yep, I've tried that. In walking through the code via a debugger, I see my APPLICATION_ZIP representation being built, but it's not the representation being

Re: Directory

2008-01-14 Thread Valdis Rigdon
that its tough to read through without valid data. No, I haven't debugged through that yet -- that was my next step. Is isListingAllowed() true on your Directory instance? Yep. On Jan 14, 2008 9:46 AM, Valdis Rigdon [EMAIL PROTECTED] wrote: Yep, I've tried

Jetty Handler

2007-12-10 Thread Valdis Rigdon
Is there a way to wire up Restlet and Jetty without using the ServletHandler? We are currently using the ServletHandler and have the Restlets deployed as a separate web application within Jetty, which works, but I was hoping to find an implementation of a Jetty Handler which I can wire up

Re: Easy Spring Integration with Restlet

2007-07-19 Thread Valdis Rigdon
Adam Taft wrote: Ultimately, no matter how we get there, Resource needs to be a stateless in order to work well with Ioc. Having used Spring and Restlet together on my current project I disagree. I can't speak for other IoC frameworks, but Spring provides multiple way to inject other beans

Re: URI matching again

2007-06-08 Thread Valdis Rigdon
I ended up with a similar issue and used Router.LAST, putting the more generic URIs first, and the most specific ones last. (ie, /user/{id} first, then /user/list later). In the end though, I ended up moving to /user/{id} and /users as Adam suggests. It's definitely made our client

RE: Maven Repository available

2007-05-03 Thread Valdis Rigdon
From someone who is currently moving from Ant build scripts to Maven2, having the jars and dependencies in ibiblio would be a better solution. Valdis I'll (strongly) second these sentiments. --Chuck From: Mark Reynolds [mailto:[EMAIL PROTECTED] Sent:

Re: Acegi and Restlet

2007-02-28 Thread Valdis Rigdon
Extend Guard, and override checkSecret() to delegate to Acegi. (I believe you'll have to grab the very latest for this -- if you are using RC4, it's a bit more work). For my application I have a singleton AcegiGuard bean and attached that to the Router to protect Resources. John Sherwood

Re: [Patch] ServerServlet refactor for overriding Application creation

2007-02-27 Thread Valdis Rigdon
I'd recommend upgrading to the latest release, which is I believe is RC4. That has the included patch. If that doesn't work, posting code would help. shlok wrote: Valdis Rigdon vrigdon at ekosystems.com writes: This is is a patch for a simple refactor of ServerServlet, breaking up

Re: Spring context and Resource

2007-02-23 Thread Valdis Rigdon
I've found 2 approaches that work, and there are possibly more. 1. Use @Configurable on your Resource classes, and use Spring AOP to inject dependencies. Search the message archives for more details on this. 2. If you don't like having the dependency on AspectJ, you can extend

[patch] Guard.authenticate refactor

2007-02-01 Thread Valdis Rigdon
I've attached a simple patch for org.restlet.Guard which breaks out the checking of identifier.equals(secret) to a separate method. We use Acegi Security and this lets me simply delegate the username/password check to the ProviderManager without having to override authenticate() completely.

Re: [patch] Guard.authenticate refactor

2007-02-01 Thread Valdis Rigdon
Any name is fine with me. For reference, I'm delegating to doAuthentication() in the Acegi framework. Thierry Boileau wrote: Wow! Thank you very much Valdis! Do you mind if the delegate method is renamed to checkSecret? Best regards, Thierry Boileau I've attached a simple patch for

Re: Newbie question on the Resource changes in RC3

2007-01-24 Thread Valdis Rigdon
Hello... I just recently found this project and after evaluating decided to use it for a project that I am starting. Great project, I am very impressed so far. I am planning to run Restlet inside Jetty and Spring. Based on the Spring example for configuring all the restlets and URIs in the

Router URI template (regex)

2007-01-10 Thread Valdis Rigdon
I've just started looking at the Restlets project, since RC1, and I can't seem to get a simple example working. It looks like it was broken in RC1 with changeset 1267 regarding quoting of regex characters in Template. I basically copy and pasted the 'trace' example from the tutorial, but

[Patch] ServerServlet refactor for overriding Application creation

2007-01-10 Thread Valdis Rigdon
This is is a patch for a simple refactor of ServerServlet, breaking up getServer() into three methods -- (1) the original getServer(), (2) one to create the HttpServerHelper, and (3) one to create the Application. No functionality has been changed; in my application I need to override the