RE: How to integrate jetty's ThrottlingFilter

2009-01-30 Thread postmaster
Hey Jerome, This looks like a fun project! Just discovered ForkJoin :) Yeah, ForkJoin is great fun indeed :) It takes a lot of pain away and is faster in many occasions (when the concept of a thread is just more than you need). Otherwise, it would be feasible to reimplement a similar filter

RE: passing java objects

2009-01-28 Thread postmaster
Wow, this is really simple. Thanks for your help! Regards, Ruben -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1060916

JAX-RS and context/application attributes

2009-01-27 Thread postmaster
Could anyone please provide the example how to pass the application deployment attributes (that I set up when rest application starts) to the concrete JAX-RS Resource. Example: I want to provide the parameter to my JAXRSApplication // create JAX-RS runtime environment Context c =

Default Routes

2009-01-26 Thread postmaster
I have routes set up as follows: router.attachDefault(DefaultResource.class); router.attach({param}, SpecialResource.class); I would expect all requests to / to go to DefaultResource, but they keep going to SpecialResource. I have even tried adding an explicit route: router.attach(/,

RE: Re: Restlet vs other 'rest' frameworks questions/views

2009-01-23 Thread postmaster
Hi Paul Thanks for the advice. You can easily to the 'content type' with the TunnelService and it works just fabulous. I got that. We are not 100% if we are going to use WADL and I think they is some TOS requirement to be in every response. That was the entire 'wrapper' things. Also. As far as

Restlet vs other 'rest' frameworks questions/views

2009-01-22 Thread postmaster
Hi There This is more of a holistic ?? on restlet. I have been using it for months and now we have a 'restful' project at work. I.e. our first one. I am pushing hard for restlet but we also have some people who want to try jersey or even write some layer on top of spring mvc or look at struts

RE: Re: Browse a Directory from a web application inside jboss

2009-01-16 Thread postmaster
Hello, I created the Directory in that way and it worked, but when I start my server whows an error whith the first file: GRAVE: The informa.rest.spring.resources.SpringDirectory class has no Restlet defined to process calls. Maybe it wasn't properly started. And it doesn't serve the file

RE: POST/PUT requests take more than 2 seconds

2009-01-15 Thread postmaster
Hi Jérôme, Yes, I'm already using Restlet 1.1.1. I realized I have his problem only when I use RESTClient from Google (http://code.google.com/p/rest-client/). I don't have it when using cURL. Apparently. I need to investigate more. Olivier Hi Olivier, Which version of Restlet are you

RE: Re: POST/PUT requests take more than 2 seconds

2009-01-15 Thread postmaster
And which HTTP server connector are you using? I don't use any connector. I think. I use the internal Restlet HTTP server: Component component = new Component(); component.getServers().add(Protocol.HTTP, 8182); component.getDefaultHost().attach(new TestApplication()); component.start();

RE: Re: Re: Tomcat appears to swallow Allow: header

2009-01-13 Thread postmaster
Well, I compared HttpServerConverter#commit code in restlet 1.0.10 and restlet 1.1.1, and the 1.0.10 version did not check for content length or response code before adding the headers. Surely this needs to be fixed in restlet 1.1.1. HttpServerConverter#commit code in restlet 1.0.10 was as

Servlet Filter using request.getParameter loses Form data

2009-01-11 Thread postmaster
We added servlet filter to our application which calls request.getParameter(name). That breaks Restlet Form handling. request.getEntityAsForm() will return empty form. It seems that getParameter interferes with getInputStream in the case form data is sent using POST. To me this sounds to be a

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: Restlet 1.1-RC1 in OSGi

2009-01-09 Thread postmaster
Hi Michael: Thanks for your help, but it didn't make any difference. I always get the java.lang.ClassNotFoundException: com.noelios.restlet.http.HttpServerConverter when I make any HTTP GET request to the standalone server. It happens with both Knopflerfish and Equinox. I am using version 1.1

RE: Restlet 1.1-RC1 in OSGi

2009-01-08 Thread postmaster
Hello : I am having the same problem trying to integrate restlets with knopflefish OSGi. Bundles start ok, they seem to start the server as well, but when I do any GET or POST requests to the restful server, a big CNFE appears: SEVERE: Unable to create the HTTP server converter

SpringBeanRouter issues

2009-01-08 Thread postmaster
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 configuration file appcontext.xml, and the root router is an instance of

RE: Re: Router class not matching a URI with corresponding Template correctly

2008-12-24 Thread postmaster
Hi Thierry, Thanks you very much for ur help. thanks Prashant Hi, if you let the default variable type (which is URI_SEGMENT), /language/temp/12345.12345/java/ will match /language/{var1}/{var2}/java/ and won't match /language/{var1}/{var2}/ . If you need to play with the variable

RE: Re: Router class not matching a URI with corresponding Template correctly

2008-12-23 Thread postmaster
Hi Thierry, Thanks for response. At this point of time please ignore my first mail. Currently My use case is something like the one given below: I have a map object containing all the URIs to be attached in router. Entries in this map are like:

RE: Re: Restlet firstResourceServlet example

2008-12-18 Thread postmaster
Hi, you're right in terms of tutorial. However, in the actual download zip file (See the following text in tutorial: You can find the sources of this sample application in the First resource application files. ), the uri was: http://localhost:808​0/firstResourceServl​et/items I believe

horn sex movies

2008-12-16 Thread postmaster
a href=http://en.netlog.com/go/out/url=-aHR0cDovL25ld3Mub3JhbmdlcHVzc3kuY24vZ28ucGhwP3NpZD0yJnE9ZnJvbnRpZXJjYXNpbm8_frontiercasino/a a href=http://en.netlog.com/go/out/url=-aHR0cDovL25ld3Mub3JhbmdlcHVzc3kuY24vZ28ucGhwP3NpZD0yJnE9Y2FzaW5vK2JuaWdvcasino bnigo/a a

wolverine trailer

2008-12-15 Thread postmaster
a href=http://www.videocodezone.com/users/barcelo-bavaro-casin6/barcelo bavaro casino beach res/a a href=http://en.netlog.com/go/out/url=-aHR0cDovL25ld3Mub3JhbmdlcHVzc3kuY24vZ28ucGhwP3NpZD0yJnE9Y2FzaW5vK3Nsb3QrZ2FtZXMrY29tcasino slot games com/a a

RE: Re: Restlet firstResourceServlet example

2008-12-15 Thread postmaster
Thierry Boileau: Thanks for your reply. I get more confused. I checked code, the uri was: http://localhost:8080/firstResourceServlet/items in the war file coming with tutorial. I don't know where http://localhost:818​2/firstResource/item​s comes out in your response. Only the package was

Restlet firstResourceServlet example

2008-12-13 Thread postmaster
Could any one tell me what i did wrong? I deployed the extracted firstResourceServlet.war file (no change) to tomcat 6.0.18, it reported error as: resource /firstResourceServlet not found? thanks --

Restlet Spring integration problem

2008-12-11 Thread postmaster
Hello, I have a problem with restlet libraries and drives. I configured the file web.xml: context-param param-nameorg.restlet.application/param-name param-value firstSteps.FirstStepsApplication /param-value /context-param !-- Restlet adapter -- servlet

RE: Re: Customized 200 level response status codes

2008-12-10 Thread postmaster
Even I use 204 status (Status.SUCCESS_NO_CONTENT)and return a null representation, the response status code that the client receives is still 404. which HTTP server connector are you using, and which client are you using to test? Then I can set it up to verify. I use Simple Server connector,

RE: Re: Customized 200 level response status codes

2008-12-10 Thread postmaster
Finally I get it working. I have to associate a 2** code with a bogus empty representaton (null representation doesn't work). Is this a bug in restlet? code // inside my resource class getResponse().setStatus(Status.SUCCESS_NO_CONTENT, No Data); return new StringRepresentation(, MediaType.ALL);

Running restlet/maven in Tomcat causes CCE

2008-12-09 Thread postmaster
I have a maven/restlet project that works just fine when I launch it with mvn jetty:run. If, however, I launch the same project, unchanged, with mvn tomcat:run, I get: [ERROR] Allocate exception for servlet PytheasRestServlet java.lang.ClassCastException:

Customized 200 level response status codes

2008-12-09 Thread postmaster
I define a customized status code(299) to handle the case of a success request with no data found. I tried two different ways to set this status code(see below), but the status code client receives is 404, not 299. There's no place in my codes to set status to 404, so this 404 must be generated