RE: Re: writing an extension

2009-11-01 Thread Ty
Thanks, I'll move over to the code mailing list to ask some questions so I can better understand how the inner workings of restlet work. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2413511

Junit testing of restlet server?

2009-10-30 Thread Ty
Hi, I am setting up a test harness for my restlet server; using junit inside Eclipse. I am using restlet to generate the client side messages and view the responses. It doesn't seem possible to generate bad HTTP headers with the restlet client. Whenever I try to create headers that are part

custom authentication ??

2009-10-29 Thread Ty
: Challenge scheme HTTP_NTLM not supported by the Restlet engine. I assume I havn't got this hooked together properly. Can someone please help. Thanks, Ty -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2412883

query: howto gracefully do HTTP shutdown

2009-10-18 Thread Ty
the SimpleServer HTTP server; if that makes any difference. Thanks, Ty -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2408624

RE: Re: Redirect Restlet console statements to an external log file using log4j.properties

2009-10-18 Thread Ty
. It looks like they have a JUL to slf4j bridge though. Is my newb'ness the problem? Could someone spell it out slowly for me :) Thanks, Ty -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2408822

re: InterruptedException when stopping component

2009-03-16 Thread Ty
I'm also interested in this functionality. I had thought of starting a separate thread that does the shutdown of the component after waiting a few moments; but that seems pretty clumsy. From: Romilly Cocking romilly.cock...@gmail.com Sent: Sunday, March

Re: Re: how to set default route in jax-rs

2009-03-16 Thread Ty
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 wrote: Hi, Thanks again for the god advice. This seems

Re: Handling a URI fragment identifier component using jax-rs?

2009-03-16 Thread Ty
Reinhardt simon.reinha...@koeln.de Sent: Sunday, March 15, 2009 11:29 PM To: discuss@restlet.tigris.org Subject: Re: Handling a URI fragment identifier component using jax-rs? Hi Ty Ty wrote: Hi, I can't seem to get a route to work for a URL that has a fragment identifier component e.g. http://site

Handling a URI fragment identifier component using jax-rs?

2009-03-15 Thread Ty
Hi, I can't seem to get a route to work for a URL that has a fragment identifier component e.g. http://site/page#fragment I am using restlet 1.2M1 and I have tried: @Path(page#{fragment}) @GET @Produces(text/plain) public String getFragment(@Context UriInfo uriInfo, @PathParam(fragment) String

Set content-location header ??

2009-03-15 Thread Ty
Hi, Restlet (1.2M) is refusing to set the content-location header and I can't seem to find a method that will let me set it. Does anyone know how to set the content-location header? Here's the code that I have tried: // *** Try setting the Content-Location header: restlet refuses with a log

RE: Re: how to set default route in jax-rs

2009-03-15 Thread Ty
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

how to set default route in jax-rs

2009-03-14 Thread 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?

RE: Re: jax-rs example throwing exception: please help

2009-03-14 Thread Ty
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

jax-rs example throwing exception: please help

2009-03-13 Thread Ty
Hi, This is most likely a really basic problem in my configuration but I can't work it out. Any help is greatly appreciated. I have v1.2 of restlet and I'm trying to run the jax-rs example (as an application) from the org.restlet.example.jar: org.restlet.example.jaxrs I get this exception