Re: Command line to STOP Restlet server

2009-01-14 Thread Leshek
> When you stop the parent Component, it stops all the child connectors. Sounds like a simple, nice, soft stop for me, but... What I am thinking is to respond to URI request like PUT .../shutdown (limit to localhost request and run through authentication guard as all the other requests). Ho

Re: Command line to STOP Restlet server

2009-01-13 Thread Leshek Fiedorowicz
All good, helpful hints, but... by Restlet designed (the best practice?) way to stop Restlet internal HTTP server? Leshek Ps. I have re-registered with tigris, thank you Jerome! -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447

Command line to STOP Restlet server

2009-01-13 Thread Leshek
I want to have stop and exit restlet server command line interface. The start is simple (java -jar myRest.jar). I know from within I can do getContext().getApplication().stop() I could to it in response to http request .../STOP, but... I want to keep control on the server only. So I am looking f

Command line to STOP Restlet server

2009-01-13 Thread Leshek
for something like starting a new Java application java -jar myRest.jar STOP to tell the other application to STOP cleanly. Leshek Ps. Posting it over web interface, regular reader post did not go through... -- http://restlet.tigris.org/ds

Re: Restlet way to parse uri Qyery component

2008-12-10 Thread Leshek
>> - invoke the "getQueryAsForm" method on the resource's reference KLOCs kill and this is as short and clear as it gets (me thinks). Form form = this.getRequest().getResourceRef().getQueryAsForm(); for (Parameter parameter : form) { System.out.println("* " + parameter.getName() +"=" + parame

Restlet way to parse uri Qyery component

2008-12-10 Thread Leshek
What is the Restlet way to get the uri Query content, where query attributes are not predefined? If I have: uri for example: http://...?filter=a*&position=33&limit=66 and router.attach("/...?{query}", MyQuery.class); and this.getRequest().getAttributes().get("Query"); then I can parse it manu

Restlet way to HttpServletRequest.getPathInfo()

2008-08-06 Thread Leshek
httpResuest, there must be a simple Restlet way. Leshek

Re: Directory.java and CDDL no more

2008-05-16 Thread Leshek
Very cleraly stated, thank you Jerome!

Re: Directory.java and CDDL no more

2008-05-12 Thread Leshek
Thank you Rob! From my current experience with legal side, definitely would be good to make it crystal clear there is no LGPL related code in there. It almost shut down all my efforts.

Re: Directory.java and CDDL no more

2008-05-11 Thread Leshek
Am I looking at a wrong source? Around line 56 of Ditectory.java I see: * ... The default sorting uses the friendly http://www.davekoelle.com/alphanum.html";>Alphanum Algorithm from David * Koelle.

Directory.java and CDDL no more

2008-05-10 Thread Leshek
The Sorting Algorithm used in newest Directory.java is released only under LGPL, according to the reverenced web site. Because of the viral nature of LGPL, I am told it is no go to use CDDL.

Re: License clarifications

2008-05-06 Thread Leshek
Noelios Papier à lettresJerome, I am not in liberty to talk about it publicly... sorry. Leshek

Re: License clarifications

2008-05-02 Thread Leshek
Noelios Papier à lettresLGPL is no, no in many cases, CDDL might work for some, but others are still legally prevented from benefiting Restlet technology. Looser licensing would definitely help. "Jerome Louvel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi all, In the lig

Re: Sending XML From client to service through HTTP GET

2008-04-11 Thread Leshek
My first thought... specific interpretation, might be useful in some cases. Think about your query as a resource itself. - make the server support a resource - a query - PUT to create a query, giving it XML as representation, PUT returns id of the resource (you could name the quert I suppose)

Re: Another newbie question: when is it appropriate to use GET parameters?

2008-04-04 Thread Leshek
>> http://www.restlet.org/documentation/books >> This book provides deeply thought out suggestions for 'normative' >> practices in building RESTful services, and covers the topic of when to >> use "pure" resource identifiers and when to use query parameters. Yeah, I read it a while back and r

RDB to REST with Restlet - how would you do it?

2008-03-24 Thread Leshek
I have a couple of RDB tables (say text only) the content of which I want to expose for reading only with Restlet, no data transformation, just map tables and columns to uris. What would be the simplest/best way/technology to do it?

Re: RESTlet XML rendering issues

2008-03-16 Thread Leshek
JFYI: I tried plain DOM implementation, rememeber pls, I am a begginer, in this space, and found DOM doc creation too cumbersom, the inteface/implementaiton split drove me nuts :-) almost nothing I wanted to do was intuitive. With JDOM, I got the results I wanted right away, maybe it just fits t

Re: RESTlet XML rendering issues

2008-03-15 Thread Leshek
tuff previously described; Restlet will do this for you. - R On Fri, Mar 14, 2008 at 11:53 PM, Leshek <[EMAIL PROTECTED]> wrote: I know how I want my XML representation to look. I can easily (?:-) craft it by StringBuffer, but... would really like to take advantage of DOM and

Re: RESTlet XML rendering issues

2008-03-14 Thread Leshek
>> it is best to stick to the JAXP factory mechanism >> does not become dependent on ... Rob, you make my head spin, but you are filling me with hope :-) Could not agree more with you and I need to keep it as simple possible so I can understand what I am doing :-) I know how I want my XML rep

Re: RESTlet XML rendering issues

2008-03-14 Thread Leshek
"Rob Heittman" <[EMAIL PROTECTED]> wrote in message >> JDK transformation incantations Sorry for the digression, what are those? That is exactly the task I am about to tackle... L.

Re: Session

2008-03-05 Thread Leshek
server. - anything that changes the resource state must be kept on the server in the resource representation - if you need to do something like longer algorithm with multiple interactions, define a resource corresponding the algorithm and manipulate it with stateless REST interaction Leshek

Reference and reference list

2008-03-04 Thread Leshek
I am looking for reference and reference list guidance, examples ( I think). At the first level of my service my URI pattern is simply AT the root my service is simply "/{type}"; In the root of my service I just started creating I would like to return a list of links to all available types. I w

Re: servlet mapping question

2008-02-29 Thread Leshek
This thread helps me understand some things too, thank you! Since we are trying to complete the picture :-) The myWar war name Thierry mentions becomes the default , but that can be changed. When you package the war into ear, in the application deployment descriptor in myEar/META-INF/applicatio

Re: First Steps - problems

2008-02-27 Thread Leshek
Ignition !!! Thank you! Now... how to the hard part... translating my design into real service :-)

Re: First Steps - problems

2008-02-27 Thread Leshek
It is working now, with files Jerome pointed me to (http://www.restlet.org/downloads/archives/1.1/restlet-1.1-SNAPSHOT.zip). >> Could you tell us if you are using >> this WAR file or another one? I am building my own, actually, building only on the fly and deploying into test instance of IBM WA

Re: First Steps - problems

2008-02-27 Thread Leshek
Thank you, a step forward. Any on what is wrong now? I get: [2/27/08 10:37:41:796 PST] 0024 ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet RestletServlet: java.lang.NullPointerException at java.util.concurrent.CopyOnWriteArrayList.(CopyOnWriteArrayList

First Steps - problems

2008-02-26 Thread Leshek
What am I doing wrong? I am trying to get the First Steps sample to work. I am working from within IBM's RAD 7.0 environment, but that should be okay right Working with Restlet 1.1 and http://www.restlet.org/documentation/1.1/firstSteps. I am trying to get it to work in Application serve

Re: First steps page

2008-02-26 Thread Leshek Fiedorowicz
Looks to me like in 1.1 HelloWorldResource missing is import for : org.restlet.resource.ResourceException or org.restlet.resource.*