Re: Problem with Spring Extension

2011-06-26 Thread Rhett Sutphin
Hi Paul, On Jun 26, 2011, at 10:24 PM, Paul Morris wrote: I'm getting the error below. I'm using both the Servlet and the Spring extensions. I figure it must be an XML config file issue so I'm including my web.xml and the two bean container files. The web.xml and the idservlet-servlet.xml

Re: Restlet and Spring - Engine and Component

2011-06-21 Thread Rhett Sutphin
Hi Paul, On Jun 21, 2011, at 6:54 PM, Paul Morris wrote: Can somebody give me a hint as to how to use spring bean injection to do the following within the Component? Here is the functionality I need to achieve within my applicationContext.xml:

Re: Using Spring and Servlet extensions together

2011-06-21 Thread Rhett Sutphin
Hi Paul, On Jun 21, 2011, at 9:09 PM, Paul Morris wrote: Would someone be able to post (or point me to) a simple example using Spring and Servlet extensions? Specifically I want to use Restlet as the main container. I'm having trouble figuring out how the web.xml file should look because

Re: Custom Challenge Scheme

2011-06-03 Thread Rhett Sutphin
Hi Paul, As Sebastian responded, part of the solution is to match up the ChallengeScheme name with what Restlet expects. The other part is to register your helper as being both for client-side and server-side. I'm not sure why this is, but Restlet[1] always looks for a client-side helper

Re: 2.0 series snapshots

2010-12-08 Thread Rhett Sutphin
Hi Thierry, On Dec 8, 2010, at 3:57 AM, Thierry Boileau wrote: Hello Rhett, the snapshot has been reactivated last week. It contains recent snapshots. Having said that, it misses the artifacts tagged with the date. I check that. Are you sure they are being published? It seems like the

Re: 2.0 series snapshots

2010-12-08 Thread Rhett Sutphin
Hi Theirry, On Dec 8, 2010, at 1:30 PM, Thierry Boileau wrote: Hello Rhett, there are actually the same, the last dated is a copy of the snapshot. We firstly published only the -SNAPSHOT artifacts. Then, some asked for the dated ones for reasons that I don't clearly remember for now.

2.0 series snapshots

2010-12-06 Thread Rhett Sutphin
Hi, There are a couple of recent bugfixes in the 2.0 line that I'd like to incorporate into my application. However it looks like the snapshots for 2.0 stopped in early November[1]. Was this intentional? Also: is there an expected release date for 2.0.4? It's not in the roadmap[2].

Re: Spring configuration and MatchingMode for the router

2010-05-13 Thread Rhett Sutphin
Hi Jean-Christophe, On May 10, 2010, at 6:22 PM, Jean-Christophe Malapert wrote: Hello, I am new in Spring configuration. I managed to configure my whole application using Spring. Nevertheless, I do not know how to set the equivalent of setMatchingMode(Template.MODE_STARTS_WITH) in

Re: Dynamic resource classes

2010-02-27 Thread Rhett Sutphin
Hi Tariq, On Feb 27, 2010, at 8:53 AM, webp...@tigris.org wrote: Hello Rhett, Thanks for the reply! What I would like to do is to create many application class instances at runtime through some internal trigger...which can be done using: attach(String pathTemplate, Restlet target)

Re: Dynamic resource classes

2010-02-26 Thread Rhett Sutphin
Hi Tariq, On Feb 26, 2010, at 5:33 AM, webp...@tigris.org wrote: I would like to know why instances of resource classes cannot be dynamically created at runtime like the application class. Resources _are_ instantiated dynamically at runtime -- one instance per request (assuming that the

Re: RESTful batch operations

2010-02-02 Thread Rhett Sutphin
Hi Erick, On Feb 2, 2010, at 10:21 AM, Erick Fleming wrote: This is more of a REST question, but is anyone using Restlet to handle batch operations? For example: given the following resource: /api/blog/1/posts. I would like to make client-side changes, then update them on one call. I

Re: including restlet in a maven project

2010-01-19 Thread Rhett Sutphin
Hi Marc, On Jan 19, 2010, at 3:13 PM, Marc Limotte wrote: I need to use restlet in a project which is managed by Maven2. I'm not too familiar with Maven, but I think I need a POM file for restlet, and I don't see one in the maven central repository. Is there a repo available with

Re: Basic HTTP Auth without Guards?

2010-01-18 Thread Rhett Sutphin
Hi, On Jan 18, 2010, at 6:09 AM, mkhatib wrote: I am trying to implement web services that will be used on an iPhone client. I need the user to authenticate and then make sure he is authorized before executing an action. I am using Spring 2.5.6 along with Restlet 1.1.7. bean

Re: Modeling button presses that invoke server side actions via REST

2010-01-13 Thread Rhett Sutphin
Hi, Tim's idea is a good one. You might also consider having a review queue resource to which you POST widgets that are ready to be reviewed. GET on this resource would be a natural way to expose the widgets that are ready for review to the reviewers. Rhett On Jan 13, 2010, at 3:47 PM, Tim

RE: Restlet and Spring bean scope in v2.0m

2010-01-04 Thread Rhett Sutphin
Anyone have any experience in scoping Spring beans using Session or Singleton? I'm extending ServerResource and I am wondering how concurrency is handled since none of the annotated methods are synchronized. Resource instances are not intended to be thread-safe. You should use prototype

Re: SpringServerServlet 404 - newb

2010-01-04 Thread Rhett Sutphin
Hi, On Dec 29, 2009, at 1:22 PM, webp...@tigris.org wrote: I'm new to Restlet and I'm getting 404 errors, so I'm guessing the SpringServerServlet isn't being invoked in Tomcat 6. I'm trying out the Spring extension in Restlet 2.0-M6. See attachment's web.xml and spring-beans.xml. I

Re: How to REST in SpringFramework

2010-01-04 Thread Rhett Sutphin
Hi, On Dec 31, 2009, at 1:59 PM, gozfidan wrote: Hi, I am new to REST and trying to integrate with my Spring application. I have done some searching bu got stuck. I have changed the web.xml and add RestletServlet-servlet.xml but not sure how to implement Resource? web.xml

Re: Supporting multiple types of authorization for a given route

2009-12-07 Thread Rhett Sutphin
Hi David, On Dec 5, 2009, at 3:47 PM, David Bordoley wrote: I was wondering if anyone had experience offering multiple types of authorization (HTTP BASIC, HTTP DIGEST, OAUTH, etc.) for a given route using Restlet. It isn't immediately apparent to me what the best way to do this is using the

Re: restlet with open session in view for hibernate

2009-12-04 Thread Rhett Sutphin
Hi kiwi, On Dec 3, 2009, at 11:10 AM, kiwionly wrote: hi, Infact my servlet is working correctly in servlet container for restlet, i not using spring MVC, and not running in servlet container (so web.xml is not working anymore), instead I running inside Netty. hence, that the problem

Re: CAS authentication in Restlet server

2009-12-02 Thread Rhett Sutphin
tickets for authentication, it needs to get a new proxy ticket from the CAS server for each request. This was intentional in the design of CAS. Rhett Regards, Arjohn Rhett Sutphin wrote: If I were adding support for just CAS, I would define a new challenge scheme (call it something like

Re: watch http request

2009-11-09 Thread Rhett Sutphin
Hi Michael, This is a discuss topic, so I'm moving it there. On Nov 7, 2009, at 9:24 AM, Michael Strupp wrote: Hello community I'm writing a java Rest Client with restlet, to call a .NET Webservice. To debug my application, it would be nice to watch the http request my client sends to

Re: CAS authentication in Restlet server

2009-11-09 Thread Rhett Sutphin
Hi Arjohn, On Nov 7, 2009, at 4:31 AM, Arjohn Kampman wrote: I'm planning to integrate CAS (proxy) authentication in my Restlet- based server. Has anyone worked on this before? Any suggestions on how to best implement this? I have done this for my Restlet-based API. I can point you to

Re: CLAP - restlet-jee-2.0snapshot

2009-10-21 Thread Rhett Sutphin
Hi, On Oct 20, 2009, at 10:46 AM, webp...@tigris.org wrote: Hi, is anyone there to help? Thanks! Dear All, I am using the restlet-jee-2.0snapshot, jdk5.0 on Tomcat 5.5. I have an application.properties file: WEB-INF/classes/application.properties But I keep getting the following

Re: Retrieving Login in a resource

2009-10-19 Thread Rhett Sutphin
Hi Fabian, On Oct 19, 2009, at 6:14 AM, Fabian Mandelbaum wrote: I guess he's using md5 on the client to avoid transmitting the password in clear (its md5 hash is transmitted instead). As a side effect, this approach may even remove the need for https with basic auth Maybe not the most

Re: Retrieving Login in a resource

2009-10-19 Thread Rhett Sutphin
, 2009 at 9:03 AM, Rhett Sutphin rh...@detailedbalance.net wrote: Hi Fabian, On Oct 19, 2009, at 6:14 AM, Fabian Mandelbaum wrote: I guess he's using md5 on the client to avoid transmitting the password in clear (its md5 hash is transmitted instead). As a side effect, this approach may even

Re: Unable to inject Protoype beans into a singleton bean via value-ref for a Spring Router

2009-10-05 Thread Rhett Sutphin
Hi Infinity, On Oct 5, 2009, at 9:58 AM, infinity wrote: Looking at the code in SpringRouter.setAttachments(), it looks like the default implementation can not handle prototype spring beans. SpringRouter can't directly handle spring-configured resource instances. You want either

Re: Unable to setup SpringBeanRouter configure

2009-10-05 Thread Rhett Sutphin
Hi Infinity, On Oct 5, 2009, at 10:03 AM, infinity wrote: I'm trying to setup a SpringBeanRouter as per the javadocs since I cannot use SpringRouter if I use spring prototype beans for attachements acc to this

Re: Unable to setup SpringBeanRouter configure

2009-10-05 Thread Rhett Sutphin
component /param-value /context-param Btw, I corrected the virtual host configuration from the parent post. pl refer the same. Rhett Sutphin wrote: Hi Infinity, On Oct 5, 2009, at 10:03 AM, infinity wrote: I'm trying to setup a SpringBeanRouter as per the javadocs since I

Re: logging framework for restlet

2009-09-30 Thread Rhett Sutphin
Kampman [mailto:arjohn.kamp...@aduna-software.com] Envoyé : vendredi 18 septembre 2009 19:13 À : discuss@restlet.tigris.org Objet : Re: logging framework for restlet Rhett Sutphin wrote: Hi Arjohn, On Sep 18, 2009, at 10:31 AM, Arjohn Kampman wrote: I was wondering if you ever considered

Re: Still getting No target class was defined for this finder

2009-09-28 Thread Rhett Sutphin
Hi Norton, Please don't post the same message multiple times on different lists. Can you try 2.0M5 and see if it resolves the issue for you? Rhett On Sep 28, 2009, at 9:28 AM, norton borf wrote: Hi, I am running the 2.0 JEE Jars from the unstable URL at (http://www.restlet

Re: Trying to build Restlet from source, error?

2009-09-25 Thread Rhett Sutphin
Hi Norton, I don't have a solution for you, but I can verify that I'm seeing a similar failure on OS X 10.6 with Java 1.6.0_15: build: [fmpp] fichier /Users/rsutphin/java/restlet/svn/trunk/build/ project.xml [fmpp] fichier /Users/rsutphin/java/restlet/svn/trunk/modules

Re: Problem with SpringBeanFinder in Restlet 2.0m4

2009-09-25 Thread Rhett Sutphin
Hi Norton, On Sep 25, 2009, at 11:36 AM, norton borf wrote: Thanks for posting that. I just updated to the latest jars in the snapshot you referenced. My project includes org.restlet.jar and org.restlet.spring.jar in my WAR file, however it is reporting the following on startup. I

Re: SVN repository location

2009-09-24 Thread Rhett Sutphin
Hi Sanjay, On Sep 24, 2009, at 1:33 PM, Sanjay Acharya wrote: What is the location of the SVN repo for restlet? http://www.google.com/search?q=what+is+the+location+of+the+svn+repo+for+restlet Rhett --

Re: how to Router.attach() a resource object

2009-09-22 Thread Rhett Sutphin
Hi Anonymous, On Sep 21, 2009, at 4:03 PM, webp...@tigris.org wrote: hi, I am trying to do: {{{ final Router router = new Router(); router.attach(/about, new DirectToTemplateResource (about.xml).getClass()); router.attach(/contact, new DirectToTemplateResource (contact.xml)); }}}

Re: logging framework for restlet

2009-09-18 Thread Rhett Sutphin
Hi Arjohn, On Sep 18, 2009, at 10:31 AM, Arjohn Kampman wrote: I was wondering if you ever considered to use a logging framework such as slf4j instead of using java util logging directly. This can make integration of restlet in applications that don't use JUL a lot easier. I'd be in favor

Re: logging framework for restlet

2009-09-18 Thread Rhett Sutphin
it in a ServletContextListener), but I also haven't tried very hard. Rhett -Tal On 09/18/2009 10:37 AM, Rhett Sutphin wrote: Hi Arjohn, On Sep 18, 2009, at 10:31 AM, Arjohn Kampman wrote: I was wondering if you ever considered to use a logging framework such as slf4j instead of using java util

Re: Resource Cleanup

2009-09-17 Thread Rhett Sutphin
Hi Matt, On Sep 17, 2009, at 9:14 AM, webp...@tigris.org wrote: I am using a router and the attach method (attach(uri pattern,class extends Resource) for my application. My question is: when I'm finished with the resource (and I know I no longer need it), what do I do to clean up?

Re: spring context - webapplication context in restlet 2

2009-09-15 Thread Rhett Sutphin
at 5:39 PM, Rhett Sutphin rh...@detailedbalance.net wrote: Hi Rahul, On Sep 13, 2009, at 11:39 AM, Rahul Juneja wrote: I wanted to get some spring injected beans in my resource file. and i have looked at the integration with spring in other ways but i would not be very interested

Re: Spring Integration with Restlet 2.0m4

2009-09-13 Thread Rhett Sutphin
Hi Rahul, There's a known bug with SpringFinder in 2.0M4. It will hopefully be fixed in the next milestone. http://restlet.tigris.org/issues/show_bug.cgi?id=892 Rhett On Sep 12, 2009, at 5:42 PM, Rahul Juneja wrote: Here is my scenario. I am trying to inject some service in my

Re: Problem with SpringBeanFinder in Restlet 2.0m4

2009-09-06 Thread Rhett Sutphin
Hi Evgeny, Thanks for the test code. This is now in the issue tracker here: http://restlet.tigris.org/issues/show_bug.cgi?id=892 Rhett On Sep 2, 2009, at 2:41 AM, Evgeny Shepelyuk wrote: Hi ! Here goes test project Hi Evgeny, Someone else had this problem, but I think we thought it

Re: Problem with SpringBeanFinder in Restlet 2.0m4

2009-09-01 Thread Rhett Sutphin
Hi Evgeny, Someone else had this problem, but I think we thought it was fixed in 2.0M4. I'll can take a look at it in the next few days. Can you file a bug? Thanks, Rhett On Aug 31, 2009, at 5:00 AM, Evgeny Shepelyuk wrote: Hello, I'm migrating application from 1.1 branch to 2.0 and

Re: OSGi vs. Service Provider patterns

2009-08-11 Thread Rhett Sutphin
Hi, On Aug 11, 2009, at 10:42 AM, Rob Heittman wrote: At one point I was given to understand that Equinox was the only OSGi framework that yet understood fragments. I'd be worried about going the fragment route if that's still true. But if KF and Felix and friends now grok fragments

Re: Spring Intergation. Spring managed resources

2009-08-06 Thread Rhett Sutphin
Hi, On Aug 4, 2009, at 7:19 AM, webp...@tigris.org wrote: I'm using Spring and Restlet 1.2m2. Actually I have tow stupid ServerResources who never interact with the rest of the app. But now I have to write a ServerResource who want a Service and, of course, I want to inject it with

Re: JAX RS exceptions with illegal QueryParameter

2009-08-06 Thread Rhett Sutphin
Hi Nicolas, On Aug 6, 2009, at 4:29 PM, Nicolas Rinaudo wrote: Yes, you're absolutely right, that's in the JAX RS specifications. I was just wondering whether RESTlet had an extension to the basic specifications that allowed more control over what error code was used (an @Error(400)

Re: getting the button from a Form

2009-07-15 Thread Rhett Sutphin
Hi Marc, On Jul 15, 2009, at 4:45 AM, Marc Lerma wrote: hello everyone, In my application, I need to get the id of a form button when managing a POST call on a given resource. this is my form i'm posting to my resource: form name=login method=post action=/iwf-rest-client/login

Re: The best way to integrate servlets with restlets

2009-06-30 Thread Rhett Sutphin
Hi Tamer, I think this is more of a discuss topic, so I'm moving it there. On Jun 30, 2009, at 9:13 AM, tameremil wrote: Hello, I am currently working on an application where I have to provide a rich web client as well as a REST API. I chose to use RESTLET for my REST API. Now when it

Re: Mysterious message in client

2009-06-25 Thread Rhett Sutphin
Hi Rick, On Jun 24, 2009, at 4:59 PM, Rick wrote: Hi, I've written the client for my web serv ice program. This client is also in Java. Whenever I invoke the client through my shell script, it gives me the following message: [code] [mybox:/var/]$ ./validate.sh Jun 24, 2009

Re: Hierarchical URI routing w/ Spring

2009-06-25 Thread Rhett Sutphin
Hi, On Jun 24, 2009, at 11:40 AM, webp...@tigris.org wrote: I have a hierarchy of container type objects that I want to be able to use. ex: /branch/{branch_id}/ /branch/{branch_id}/branch/{branch_id}/ /branch/{branch_id}/branch/{branch_id}/branch/{branch_id}/ etc. This structure

Re: Response for a 405 can't be parsed by SAX

2009-06-13 Thread Rhett Sutphin
Hi Stephan, On Jun 13, 2009, at 3:45 PM, Stephan Koops wrote: Hi Rhett, Hello Everyone, I had a question about the 405 response message returned by Restlet 1.1.1. When I try a parse the XML response, I get the following: [Fatal Error] :8:3: The element type br must be terminated by

Re: Response for a 405 can't be parsed by SAX

2009-06-12 Thread Rhett Sutphin
Hi John, On Jun 12, 2009, at 10:10 AM, John Prystash wrote: Hello Everyone, I had a question about the 405 response message returned by Restlet 1.1.1. When I try a parse the XML response, I get the following: [Fatal Error] :8:3: The element type br must be terminated by the

Re: Weird exception using Spring integration

2009-05-13 Thread Rhett Sutphin
Hi Stephane, This error means that the entity has already been read by the time your resource starts executing. This might happen in a filter, for example. AFAIK, the SpringBeanRouter (and its various helpers) do not touch the entity. Rhett On May 13, 2009, at 9:17 AM, Stephane Nicoll

Re: SpringBean router not discovering any routes

2009-04-27 Thread Rhett Sutphin
Hi, Thanks for the offer. Detecting restlets has also been added to SpringBeanRouter for version 1.2. Rhett On Apr 25, 2009, at 7:21 AM, Stephane Nicoll stephane.nic...@gmail.com wrote: That did the trick, thanks. I have also extended the SpringBeanRouter to detect and deploy

Re: SpringBean router not discovering any routes

2009-04-24 Thread Rhett Sutphin
Paul's correct -- in 1.1, SpringBeanRouter only looks at the aliases. Spring doesn't consider the name to be an alias unless there's also an id. In 1.2, SpringBeanRouter will consider the bean's primary identifier in addition to the aliases. Rhett On Apr 24, 2009, at 10:07 AM, Paul

Re: Guards through Spring

2009-04-15 Thread Rhett Sutphin
Hi Dustin, I'm using Restlet 1.2 with the SpringBeanRouter, but I've noticed that it only picks up those URLs that are tied to a Resource, and not a Guard. Would it be appropriate to simply override the postProcessBeanFactory() method to look for Guards too? Would this be considered a

Re: Spring restlet configuration

2009-04-14 Thread Rhett Sutphin
Hi, On Apr 13, 2009, at 5:06 PM, webp...@tigris.org wrote: Forgot to attach the app log, the line INFO: Routes: /sample/ locations it's added by me and actually checks that the router used by the application contains a route for /sample/locations, the request is for /sample/locaions but

Re: SpringBeanRouter

2009-04-14 Thread Rhett Sutphin
Hi Jim, On Apr 14, 2009, at 1:57 AM, Jim Alateras wrote: Rhett, Thanks for the quick turnaround and suggestions On 14/04/2009, at 2:19 PM, Rhett Sutphin wrote: Hi Jim, On Apr 13, 2009, at 7:56 PM, Jim Alateras wrote: I am currently using s custom class to attach routes to a router

Re: SpringBeanRouter

2009-04-13 Thread Rhett Sutphin
Hi Jim, On Apr 13, 2009, at 7:56 PM, Jim Alateras wrote: I am currently using s custom class to attach routes to a router but am now looking at using the SpringBeanRouter but have a couple of questions. 1. In the example below if i also want to support the a query string would i change

Re: [1.1.3] Tomcat + RestletFrameworkServlet mapping SpringBeanRouter to /

2009-04-08 Thread Rhett Sutphin
Hi Paul, On Apr 8, 2009, at 10:18 AM, Paul Austin wrote: Jerome, Here is an implementation which extends SpringBeanRouter, it could easily be integrated into the super class. Thanks for the suggestion. I've added something similar in SpringBeanRouter in trunk r4711, but I only added an

Re: Media types specified as a query parameter

2009-04-07 Thread Rhett Sutphin
Hi Fabio, On Apr 7, 2009, at 4:18 AM, Fabio Mancinelli wrote: Hi everybody, I would like to use query parameters in order to specify the media type to be sent to the client. Tunneling and metadata services should do the trick. However I cannot achieve this. I called in createRoot()

Re: Resource factories

2009-04-07 Thread Rhett Sutphin
Hi Kyrre, On Apr 7, 2009, at 9:28 AM, Kyrre Kristiansen wrote: Hello, all. *rant alert* I came over this discussion, and wanted to share my experiences with creating resources. I started playing around with restlet before it became 1.0, and am generally very, very pleased with it. One

Re: Restlet 1.1.3 + Spring + servlet resource is being re-used

2009-04-06 Thread Rhett Sutphin
Hi Paul, On Apr 6, 2009, at 11:45 AM, Paul Austin wrote: I am using the RestletFrameworkServlet with the SpringBeanRouter to serve up resources. The resource in question will return a static file within a web application. I noticed that the images on a web page served by this resource

Re: Loading Spring Beans

2009-04-03 Thread Rhett Sutphin
Hi Dustin, Another option you could consider (if you haven't already) is using RestletFrameworkServlet and SpringBeanRouter to configure your application. This allows you to use IoC to configure your Resource instances, obviating the need to access the ApplicationContext directly most of

Re: Restlet 1.2 M2 released

2009-04-02 Thread Rhett Sutphin
On Apr 2, 2009, at 11:11 AM, Stephan Koops wrote: Jonathan Hall schrieb: Shame you can't have @Get(MediaType.TEXT_HTML). I don't know. Would it work to change MediaType from class to an enum? That could work, but I'm not sure This would sacrifice the ability to create new MediaTypes in

Re: Resource factories

2009-03-23 Thread Rhett Sutphin
Hi Tal, On Mar 23, 2009, at 1:06 PM, Tal Liron wrote: Thanks, Tim. This is a reasonable workaround -- creating a factory where one isn't there. And Guice adds some elegance to your solution. Another solution is simply to rewrite Finder entirely to use factories. This isn't hard. But it

Re: Resource factories

2009-03-23 Thread Rhett Sutphin
Hi Dave, On Mar 23, 2009, at 3:08 PM, David Bordoley wrote: Out of curiosity is there a reason why Resource isn't implemented as a subclass of Restlet? It seams like there is a lot of overhead in initializing a new Resource on every request especially when a lot of salient features such as

Re: Integrating WADL and Spring

2009-03-07 Thread Rhett Sutphin
Hi David, On Mar 6, 2009, at 4:10 PM, David Bordoley wrote: On Fri, Mar 6, 2009 at 11:32 AM, Rhett Sutphin rh...@detailedbalance.net wrote: This would be an RFE (at least, I'm not aware of any way to get it to work currently). I'm curious about how you would tie the resources in your

Re: Integrating WADL and Spring

2009-03-06 Thread Rhett Sutphin
Hi Dave, On Mar 6, 2009, at 1:08 PM, David Bordoley wrote: I've been playing around with Restlet for some projects I'm working on and have really enjoyed the platform. I'm wondering if there is a way to define your service in a WADL document but still use Spring to configure all your

Re: Spring integration questions

2009-03-03 Thread Rhett Sutphin
Hi Evgeny, On Mar 2, 2009, at 11:01 AM, Evgeny Shepelyuk wrote: Hello ! There's some questions are raised again when trying to start up restlet project with Spring. During development i do have some deep feeling that restlet has not much robust Spring integration. Especially in

Re: SpringBeanRouter enhancement

2009-02-16 Thread Rhett Sutphin
Hi Daniel, This is a reasonable fix. Can you open a ticket in the issue tracker? If you'd care to submit a patch with unit tests, that would be even better. Thanks, Rhett On Feb 16, 2009, at 12:50 AM, Daniel Woo wrote: Hi guys, The SpringBeanRouter.resolveUri() method in 1.1.1 has a

Re: Mime type filtering.

2009-02-06 Thread Rhett Sutphin
Hi, On Feb 6, 2009, at 2:55 PM, Rob Heittman wrote: If you are using the Accept: header in your client ... and using the Restlet Resource model on the server ... just write your responding code in your override of represent(Variant variant). if(variant.getMediaType().equals([the

Re: Auto-Attachment of Resources to Router

2009-01-23 Thread Rhett Sutphin
could be wrong? Jean-Philippe On Wed, Jan 21, 2009 at 11:13 PM, Rhett 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

Re: Auto-Attachment of Resources to Router

2009-01-21 Thread Rhett Sutphin
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 mechanism? Adding each one by hand will get

Re: Returning data after PUT/POST

2009-01-21 Thread Rhett Sutphin
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. PUT is useful for updates. It's also useful when the client determines the resource's URL. This latter case is pretty common -- some systems

OT: Re: RESTlet + Spring

2009-01-21 Thread Rhett Sutphin
/repository repository idrestlet/id urlhttp://maven.restlet.org/url /repository /repositories /project On Tue, Jan 20, 2009 at 12:34 PM, Rhett Sutphin rh...@detailedbalance.net wrote: Hi Jean-Philippe, At first glance, the error seems to be a generic spring

Re: RESTlet + Spring

2009-01-20 Thread Rhett Sutphin
Hi Jean-Philippe, At first glance, the error seems to be a generic spring error -- that one of the wired dependencies is of the wrong type. Looking at your XML, I wonder if it is failing here: property name=persistenceUnitManager value=persistenceUnitManager/ property

Re: Returning data after PUT/POST

2009-01-20 Thread Rhett Sutphin
Hi Jean-Philippe, Based on the way i've currently constructed my app this may not be possible. If I want to add a resource named car I perform a PUT on a url like http://localhost/myapp/car/ instead of http://localhost/myapp/car/15 . This is because I do not want the client to be

Re: Patch to parameterize port numbers in JUnit tests

2009-01-14 Thread Rhett Sutphin
For Spring it should be possible to inject the static value into the bean property. I don't remember the exact syntax, but we can figure this out. You can configure a PropertyPlaceholderConfigurer into the application context:

Re: SpringBeanRouter issues

2009-01-13 Thread Rhett Sutphin
However, I'm not sure however about injecting the SpringBeanFinder because we need one instance per target resource bean... This could be achieved by injecting the bean name (instead of an instance) and then using the application context to retrieve instances as needed. That said, I much

Re: SpringBeanRouter issues

2009-01-08 Thread Rhett Sutphin
Hi, On Jan 8, 2009, at 10:14 AM, postmas...@tigris.org wrote: Hi guys, Thanks for your hard work on Restlet with Spring integration, I am able to integrate them according to the wiki, however I found two issues I used SpringServerServlet to load the Application from spring context

Re: securing Restlet

2008-12-22 Thread Rhett Sutphin
Hi Stephan, On Dec 22, 2008, at 3:20 AM, Stephan Koops wrote: Ho Rhett, but doesn't the current Guard implementation obviate the need for both sessions and cookies, and yet provide us with basic authentication? if yes, then a solution for providing customizable form-based login could

Re: securing Restlet

2008-12-22 Thread Rhett Sutphin
Hi Stephan, On Dec 22, 2008, at 12:02 PM, Stephan Koops wrote: Hi Rhett, There is a way, but HTML and HTTP is not enough: You need JavaScript to send a XMLHttpRequest. But you can't use http state 401 for return, because the browser should prompt (search for 401 on

Re: securing Restlet

2008-12-21 Thread Rhett Sutphin
On Dec 20, 2008, at 6:49 PM, Raif S. Naffah wrote: On Sunday 21 December 2008 09:05:46 Rhett Sutphin wrote: On Dec 20, 2008, at 3:34 PM, Raif S. Naffah wrote: hello Stephan, On Sunday 21 December 2008 00:41:48 Stephan Koops wrote: Hi Raif, Another possibility to not require the browser

Re: securing Restlet

2008-12-20 Thread Rhett Sutphin
On Dec 20, 2008, at 3:34 PM, Raif S. Naffah wrote: hello Stephan, On Sunday 21 December 2008 00:41:48 Stephan Koops wrote: Hi Raif, Another possibility to not require the browser login prompt is to use an AJAX reqeust and set the credentials in it. I've implemented this, but I needed a

Re: java.lang.AbstractMethodError: org.restlet.util.Engine.fireContextChanged

2008-12-01 Thread Rhett Sutphin
Hi Ian, You need to upgrade the com.noelios.restlet dependencies to 1.1.1, too. Rhett On Dec 1, 2008, at 11:58 AM, Ian Clarke wrote: Hi Thierry, Just checked, the file com.noelios.restlet-1.0.11.jar is in my classpath (put there by Maven). com.noelios.restlet.ext.httpclient-1.0.11.jar is

Re: use of Finder class

2008-11-16 Thread Rhett Sutphin
Hi, On Nov 17, 2008, at 12:47 AM, Gan123 wrote: i am new to restlet, just started exploring on this. please tell me the use of Finder class in restlet. how is it different from Router class? Finders and Routers are both types of Restlets. A Router maps from a URI to some

Re: Spring configuration example using com.noelios.restlet.ext.spring package

2008-10-17 Thread Rhett Sutphin
Hi Mark, You might also consider using SpringBeanRouter. If you only have one URI mapping per resource, it allows your URIs to be mapped directly in the bean definitions. Your example would be like this using SpringBeanRouter (note: not tested): !-- server bean as before -- bean

Re: Guards and authentication mechanisms

2008-05-30 Thread Rhett Sutphin
Hi Bruno, This general idea is good. I have one small objection, though: HTTP allows multiple challenges per 401 response. This means you might want to have a guard with parallel authentication checks. For this reason, I don't think that subclassing Guard per authentication scheme

Re: PUT requires an entity

2008-05-08 Thread Rhett Sutphin
Hi Jim, On May 8, 2008, at 11:22 PM, Jim Alateras wrote: I've noticed that if i do a PUT to a resource with an empty entity I get a BAD_REQUEST status code. Is it part of the HTTP spec that the PUT must contain a non-null entity. We had a discussion of this a few months back. The

Re: Credentials sent via Apache HttpClient not getting retrieved by Restlet Custom Guard classes

2008-04-30 Thread Rhett Sutphin
On Apr 30, 2008, at 2:18 PM, Surjendu wrote: I tried that..But i still get the credentials as null..Is there any other way to figure out whether the credentials are reaching the server. I'm a fan of wireshark for isolating client/server interaction problems: http://www.wireshark.org/

Re: Guarding all Resources using one Guard

2008-04-21 Thread Rhett Sutphin
Hi Surjendu, On Apr 21, 2008, at 11:55 AM, Surjendu wrote: Hi Barrie Thanks for ur response. But the sample codebase Jerome suggested does not work. I did the following which did not work Router router = new Router(getContext()); router.attach(/domain/{domainname}, DomainResource.class);

Re: Authentication Helper/Guard help

2008-04-06 Thread Rhett Sutphin
Hi Barrie, How are your restlets wired up? It sounds like the guard is not in the chain that leads to the UserResource. Rhett On Apr 6, 2008, at 4:02 PM, Barrie Selack wrote: I can't seem to get an automatic checking of authentication happening for my resource. Maybe I do not

Re: Authentication Helper/Guard help

2008-04-06 Thread Rhett Sutphin
for it to happen? Regards, Barrie (guess I'll have to write a short Wiki how to once I have this working...) From: Rhett Sutphin [EMAIL PROTECTED] On Behalf Of Rhett Sutphin [EMAIL PROTECTED] Sent: Sunday, April 06, 2008 5:09 PM To: discuss@restlet.tigris.org

Re: Authentication Helper/Guard help

2008-04-06 Thread Rhett Sutphin
the pieces fit together. Regards, Barrie From: Rhett Sutphin [EMAIL PROTECTED] On Behalf Of Rhett Sutphin [EMAIL PROTECTED] Sent: Sunday, April 06, 2008 5:33 PM To: discuss@restlet.tigris.org Subject: Re: Authentication Helper/Guard help Hi Barrie

Re: integrating restlet with the spring DispatcherServlet

2008-04-01 Thread Rhett Sutphin
Hi Michael, On Apr 1, 2008, at 10:50 AM, Michael Böckling wrote: I have trouble to figure out how to integrate it with the org.springframework.web.servlet.DispatcherServlet. I use that for some SOAP web services (using the xfire exporter), but now I want to attach a restlet using json. I was

Re: bug in the spring SpringBeanRouter

2008-04-01 Thread Rhett Sutphin
On Apr 1, 2008, at 3:20 PM, Michael Böckling wrote: After lots of debugging, it seems wildcards don't work in the SpringBeanRouter, since the * is improperly escaped. I haven't tried using *. SpringBeanRouter is taking the bean name and passing it directly to attach. I'm not aware of

Re: Spring + Restlet + Tomcat

2008-03-20 Thread Rhett Sutphin
Hi Stephen, On Mar 20, 2008, at 10:27 AM, Stephen Mc Namara wrote: I'm trying without much success to bootstrap a new project using both Spring (2.5) and restlet(1.1-M2). The plan goes something like this; * Restlet resources on the front end which interact with a service layer. The

Re: restlet + spring --- managed resources

2008-03-07 Thread Rhett Sutphin
Hi Brian, On Mar 7, 2008, at 9:50 AM, Brian Donnovan wrote: Rhett Sutphin rhett at detailedbalance.net writes: Hi Brian, On Mar 6, 2008, at 10:04 AM, Brian Donnovan wrote: thanks for the hint, i will try it that way! just one thing, i looked at the springresource class and it seems

Re: restlet + spring --- managed resources

2008-03-06 Thread Rhett Sutphin
Hi Brian, On Mar 6, 2008, at 10:04 AM, Brian Donnovan wrote: thanks for the hint, i will try it that way! just one thing, i looked at the springresource class and it seems to not have much in common with the original resource class. the great thing of the resource class were the hooks for

Re: Authentication: multiple challenges?

2008-03-05 Thread Rhett Sutphin
Hi Jerome, On Mar 5, 2008, at 3:41 AM, Jerome Louvel wrote: You are correct. This could be a good enhancement for 1.2. Do you want to enter a RFE in our issue tracker? Done: http://restlet.tigris.org/issues/show_bug.cgi?id=457 . Rhett

Re: Authentication Header

2008-03-04 Thread Rhett Sutphin
Hi, On Mar 4, 2008, at 9:59 AM, Jahid wrote: On server side, I am trying to set a header which will look like this ABC realm=, challenge- container=salkfadfo823w9283oinfskefn2398wenfdsk; Can anyone tell me how can I achieve that? Here I want to mention that, I dont/can't change

  1   2   >