> 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
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
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
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
>> - 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
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
httpResuest, there must be a simple Restlet way.
Leshek
Very cleraly stated, thank you Jerome!
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.
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.
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.
Noelios Papier à lettresJerome, I am not in liberty to talk about it
publicly... sorry.
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
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)
>> 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
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?
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
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
>> 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
"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.
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
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
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
Ignition !!! Thank you! Now... how to the hard part... translating my
design into real service :-)
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
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
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
Looks to me like in 1.1 HelloWorldResource missing is import for :
org.restlet.resource.ResourceException
or
org.restlet.resource.*
28 matches
Mail list logo