Re: Serve static content using SpringBeanRouter?

2014-06-04 Thread Jerome Louvel
bra_logo.png - 200 - 0 1 http://localhost:9091 Mozilla/5.0 > (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) > Chrome/35.0.1916.114 Safari/537.36 - > > Could be related to the clap protocol? Other than that, I debugged it and > looks it is working as expected,

Re: Serve static content using SpringBeanRouter?

2014-05-30 Thread Jorge Gallardo
u shouldn't embed a Directory inside a ServerResource but > directly attach it to your SpringBeanRouter. > To not have to use the {imageId} path variable (for your file names I > guess), you can set the route's matchingMode to Template.STARTS_WITH. I'm > not sure exactly

Re: Serve static content using SpringBeanRouter?

2014-05-29 Thread Jerome Louvel
Hi Jorge, Normally, you shouldn't embed a Directory inside a ServerResource but directly attach it to your SpringBeanRouter. To not have to use the {imageId} path variable (for your file names I guess), you can set the route's matchingMode to Template.STARTS_WITH. I'm not sure ex

Serve static content using SpringBeanRouter?

2014-05-29 Thread Jorge Gallardo
Hello all, Im trying to serve static content from the filesystem but I cant. I was able to do it with a plain and simple Reslet application but not using SpringBeanRouter. Here is the code: @Component("/v1/images/{imageId}") @Scope("prototype") public class Im

Re: How to signup a ChallengeAuthenticator when using SpringBeanRouter

2011-04-27 Thread Daniele Dellafiore
verifier and next properties and then use that as the inbound router. Maybe I'll try when I'll have a more complete solution. -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/How-to-signup-a-ChallengeAuthenticator-when-using-SpringBeanRouter-tp5588475p630

How to signup a ChallengeAuthenticator when using SpringBeanRouter

2010-09-30 Thread infinity
I have a working app with restlet 2.0 and Server resources configured through SpringBeanRouter http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:util="http://www.springframework.org/schema/util";

RE: Unable to setup SpringBeanRouter configure

2009-10-08 Thread Jerome Louvel
De : infinity [mailto:infinity2hea...@gmail.com] Envoyé : lundi 5 octobre 2009 22:34 À : discuss@restlet.tigris.org Objet : Re: Unable to setup SpringBeanRouter configure Works with 2.0M5. Thanks Pritam wrote: > > I'm using 2.0M4, will try 2.0M5. Can you point out the file in which th

Re: Unable to setup SpringBeanRouter configure

2009-10-05 Thread infinity
eans that >>>> your server should respond to >>>> >>>> http://servername:port/ws/ws/contact/{operation} >>>> http://servername:port/ws/mock/1/data/Contact/{userId} >>>> http://servername:port/mock/ws/contact/{operation} >>>> http:

Re: Unable to setup SpringBeanRouter configure

2009-10-05 Thread infinity
n} >>> http://servername:port/ws/mock/1/data/Contact/{userId} >>> http://servername:port/mock/ws/contact/{operation} >>> http://servername:port/mock/mock/1/data/Contact/{userId} >>> >>> I'm guessing that's not what you want. Router attachment URI

Re: Unable to setup SpringBeanRouter configure

2009-10-05 Thread Rhett Sutphin
} >> http://servername:port/ws/mock/1/data/Contact/{userId} >> http://servername:port/mock/ws/contact/{operation} >> http://servername:port/mock/mock/1/data/Contact/{userId} >> >> I'm guessing that's not what you want. Router attachment URIs >> (w

Re: Unable to setup SpringBeanRouter configure

2009-10-05 Thread infinity
:port/mock/ws/contact/{operation} > http://servername:port/mock/mock/1/data/Contact/{userId} > > I'm guessing that's not what you want. Router attachment URIs > (whether you use SpringRouter, SpringBeanRouter, or something else) > are relative to the attachment point o

Re: Unable to setup SpringBeanRouter configure

2009-10-05 Thread Rhett Sutphin
operation} http://servername:port/mock/mock/1/data/Contact/{userId} I'm guessing that's not what you want. Router attachment URIs (whether you use SpringRouter, SpringBeanRouter, or something else) are relative to the attachment point of the router. Rhett > > > &g

Re: Unable to setup SpringBeanRouter configure

2009-10-05 Thread infinity
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 >> cannot use >> SpringRouter if I use spring prototype b

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 > http://n2.nabble.com/Unable-to-inject-Protoype-be

Unable to setup SpringBeanRouter configure

2009-10-05 Thread infinity
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 http://n2.nabble.com/Unable-to-inject-Protoype-beans-into-a-singleton-bean-via-value-ref-for-a-Spring-Router-td3756435.html#a3756435 issue .

Re: SpringBeanRouter

2009-04-14 Thread Dustin N. Jenkins
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 >>>> but >>>> am now lo

Re: SpringBeanRouter

2009-04-14 Thread Rhett Sutphin
>> 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 >>> s

Re: SpringBeanRouter

2009-04-13 Thread Jim Alateras
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 but >> am now looking at using

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 s

SpringBeanRouter

2009-04-13 Thread Jim Alateras
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 the bean name to "/studies?{query}" 2. How do i

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

2009-04-09 Thread Paul Austin
ex doesn't allow you to name groups of matches. Paul On 8-Apr-09, at 4:18 PM, Rhett Sutphin wrote: > Hi Paul, > > On Apr 8, 2009, at 10:18 AM, Paul Austin wrote: > >> Jerome, >> >> Here is an implementation which extends SpringBeanRouter, it could >>

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

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

2009-04-08 Thread Paul Austin
Jerome, Here is an implementation which extends SpringBeanRouter, it could easily be integrated into the super class. import java.util.Map; import java.util.Map.Entry; import org.restlet.Finder; import org.restlet.ext.spring.SpringBeanRouter; import org.springframework.beans.BeansException

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

2009-04-08 Thread Paul Austin
gt; > -- > *De :* Paul Austin [mailto:mail-li...@revolsys.com] > *Envoyé :* mardi 7 avril 2009 21:58 > *À :* discuss@restlet.tigris.org > *Objet :* Re: [1.1.3] Tomcat + RestletFrameworkServlet mapping > SpringBeanRouter to / > > Here is a class

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

2009-04-08 Thread Jerome Louvel
ys.com] Envoyé : mardi 7 avril 2009 21:58 À : discuss@restlet.tigris.org Objet : Re: [1.1.3] Tomcat + RestletFrameworkServlet mapping SpringBeanRouter to / Here is a class which fixes the issue. Probably a better solution would be to change the Route class so that if the remainingPart is &

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

2009-04-07 Thread Paul Austin
ed but not /apps/xyz? public class RootSpringBeanRouter extends SpringBeanRouter { @Override public void handle(Request request, Response response) { Reference resourceRef = request.getResourceRef(); if (resourceRef.getRemainingPart().equals("")) { resourceRef.addSegme

[1.1.3] Tomcat + RestletFrameworkServlet mapping SpringBeanRouter to /

2009-04-07 Thread Paul Austin
SpringBeanRouter and I have a mapping for / to a resource as shown below. The war is deployed to /ws on my server. If I access /ws I get an Restlet status page error saying "The server has not found anything matching the request URI" but if I use /ws/ it works correctly. I tried

RE: Re: SpringBeanRouter enhancement

2009-02-18 Thread Jerome Louvel
d'origine- De : Daniel Woo [mailto:daniel.y@gmail.com] Envoye : mercredi 18 fevrier 2009 09:56 A : discuss@restlet.tigris.org Objet : RE: Re: SpringBeanRouter enhancement Sorry, I got no time to write a full fledged unit test class, I simply submitted a ticket in your backlog :-)

RE: SpringBeanRouter enhancement

2009-02-18 Thread Jerome Louvel
: discuss@restlet.tigris.org Objet : Re: SpringBeanRouter enhancement 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: >

RE: Re: SpringBeanRouter enhancement

2009-02-18 Thread Daniel Woo
Sorry, I got no time to write a full fledged unit test class, I simply submitted a ticket in your backlog :-) http://restlet.tigris.org/issues/show_bug.cgi?id=735 -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1184490

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

SpringBeanRouter enhancement

2009-02-15 Thread Daniel Woo
Hi guys, The SpringBeanRouter.resolveUri() method in 1.1.1 has a potential problem, if you specify restlet in Spring configuration file without an id like this way: Your BeanFinder will never be attached the URI "/product-folders". The reason is that the resolveUri() method tries to get name

RE: Re: SpringBeanRouter issues

2009-01-16 Thread Daniel Woo
issues, I gave up and revert to 1.1.1. Anyway I did read through your code SpringBeanRouter and SpringBeanFinder, it seems your solution is smarter than mine and SpringBeanFinder is totally not affected :-) I 99% believe your change should work. Once you guys release 1.2 officially I will switch

RE: Re: SpringBeanRouter issues

2009-01-16 Thread Daniel Woo
ve instances > as needed. > > That said, I much prefer the current style -- it allows you to change > the finder type by subclassing SpringBeanRouter and overriding > createFinder -- especially since you're going to have to modify the > prototype finders anyway (to give th

Re: SpringBeanRouter issues

2009-01-13 Thread Rhett Sutphin
hat said, I much prefer the current style -- it allows you to change the finder type by subclassing SpringBeanRouter and overriding createFinder -- especially since you're going to have to modify the prototype finders anyway (to give them the resource bean name). Rhett On Jan 13, 2009, at

Re: SpringBeanRouter issues

2009-01-13 Thread Jerome Louvel
Hi Daniel, Thanks for sharing your experience and for the enhancement suggestion. I've just made the SpringBeanRouter implement ApplicationContextAware, using the context received to instantiate the finders. Changes are checked in SVN trunk. However, I'm not sure however about inj

RE: Re: SpringBeanRouter issues

2009-01-11 Thread Daniel Woo
hink you can make SpringBeanRouter implement ApplicationContextAware. I > made it this way, the AOP interceptor successfully executed. > > I changed very little to your SpringBeanRouter and SpringBeanFinder: > > SpringBeanRouter: make it ApplicationContextAware, and holds an >

RE: Re: SpringBeanRouter issues

2009-01-09 Thread postmaster
I think you can make SpringBeanRouter implement ApplicationContextAware. I made it this way, the AOP interceptor successfully executed. I changed very little to your SpringBeanRouter and SpringBeanFinder: SpringBeanRouter: make it ApplicationContextAware, and holds an ApplicationContext. Each

RE: Re: SpringBeanRouter issues

2009-01-09 Thread postmaster
.DefaultListableBeanFactory - Finished creating inst ance of bean 'rootRouter' ---class org.springframework.beans.factory.support.DefaultListableBeanFactory ---class org.springframework.beans.factory.support.DefaultListableBeanFactory If you look at Sprin

Re: SpringBeanRouter issues

2009-01-08 Thread Rhett Sutphin
cation from spring > context configuration file appcontext.xml, and the root router is an > instance of org.restlet.ext.spring.SpringBeanRouter which is > injected by the Spring container into the Application. Hence > Application.createRoot() returns the injected SpringBeanRoute

SpringBeanRouter issues

2009-01-08 Thread postmaster
org.restlet.ext.spring.SpringBeanRouter which is injected by the Spring container into the Application. Hence Application.createRoot() returns the injected SpringBeanRouter as root router. So far, everything works but 1. Each resource bean must have an explicit ID, otherwise bean lookup will fail

Re: bug in the spring SpringBeanRouter

2008-04-02 Thread Michael Böckling
> I haven't tried using *. SpringBeanRouter is taking the bean name and > passing it directly to attach. I'm not aware of anything Spring does > specially with *, but there could be. Can you provide a reproduceable > test case? I don't have my test-setup any

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'

bug in the spring SpringBeanRouter

2008-04-01 Thread Michael Böckling
After lots of debugging, it seems wildcards don't work in the SpringBeanRouter, since the * is improperly escaped. The SpringBeanRouter also does not work when placed in the [servlet-name]-servlet.xml, it must be placed in the main applicationContext.xml. Can you confirm this?