Thanks, I'll give it a try.
From: Alexander J. Perez Tchernov xas...@gmail.com
Sent: Sunday, March 15, 2009 11:03 PM
To: discuss@restlet.tigris.org
Subject: Re: Re: how to set default route in jax-rs
An simple solution might be to introduce JAX-RS
Hi,
Thanks again for the god advice. This seems to be the call you are referring
to:
// create JAX-RS runtime environment
final JaxRsApplication application = new
JaxRsApplication(comp.getContext().createChildContext());
// set the Default restlet
An simple solution might be to introduce JAX-RS resource that catch
any url addressing with help of reg-exp.
something like
@Path(value = /{resource:.*})
public class CatchAll {
public CatchAll (@PathParam(resource) String resource ) {}
}
On Sun, Mar 15, 2009 at 12:34 AM, Ty
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?
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
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