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,
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
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
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
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
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";
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
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:
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
}
>> 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
: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
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
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
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
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 .
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
>> 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
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
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
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
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
>>
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
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
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
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 &
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
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
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 :-)
: 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:
>
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
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
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
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
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
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
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
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
>
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
.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
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
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
> 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
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'
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?
44 matches
Mail list logo