Hi,
Does anyone know how to set a default router (catch-all route) using jax-rs.
In standard restlet I'd do this:
final Router myRouter = new Router(getContext());
myRouter.attachDefault(CatchAll.class);
Is there a way to get the same functionality using jax-rs?
Thanks, the activation jar was the first of many that I needed to add before I
could get the example to work. Eventually I did get it to work though.
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1319909
Hi,
I'm trying to get my head around jax-rs and I'm not sure how to set a catch-all
route for my site. In restlet I would do this:
final Router myRouter = new Router(getContext());
myRouter.attachDefault(CatchAll.class);
Is there a way to do the same thing in jax-rs?
T
Thanks for the help Stephan. You got me started on a journey of adding
libraries. In the end I had to include the following before the example would
run:
com.sun.jaxb.jar
javax.activation.jar
javax.mail.jar
javax.ws.rs.jar
javax.xml.bind.jar
org.apache.commons.fileupload.jar
org.json.jar
Now that I'm drinking the OSGi Kool-Aid, one of the main problems my
projects face is component reliance on the Java Service Provider model
(META-INF/services/... discovery) to find available bits. My Google-fu is
apparently weak, because I haven't found any good, rational treatment of
what the
hi Ty,
you could set a default Restlet in the JaxRsRouter (or in the
JaxRsApplication)
best regards
Stephan
Ty schrieb:
Hi,
Does anyone know how to set a default router (catch-all route) using jax-rs.
In standard restlet I'd do this:
final Router myRouter = new
6 matches
Mail list logo