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
Wow, this is really simple.
Thanks for your help!
Regards,
Ruben
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1060916
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 =
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(/,
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
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
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
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
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();
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
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
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
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
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
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
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
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:
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:8080/firstResourceServlet/items
I believe
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
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
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:8182/firstResource/items comes out in your response. Only
the package was
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
--
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
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,
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);
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:
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
27 matches
Mail list logo