Re: firstResource tutorial: item put vs. items post

2010-02-24 Thread Thierry Boileau
Hello Daniel, >apparently PUT updates an existing item if found yes, and it creates it if not found. One important condition is that you know (by advance, if the resource does not exist yet) the resource's identifier (its URI). POST is a more generalist operation that allows the target resourc

Re: Matlab With Restlet

2010-02-24 Thread Thierry Boileau
Hello Rashik, no problems. bye, Thierry > hi Thierry > >Sorry for late reply for ur post.Actually i have found the reason for > the behaviour.The problem was in my code in matlab.Im really sorry for taking > up ur time but without ur help i would not have found the problem in side > m

firstResource tutorial: item put vs. items post

2010-02-24 Thread Daniel Rocco
hello everyone, I'm a new user working through the Restlet tutorials (Restlet 2.0m7, java 1.6, running standalone (no servlet container) from eclipse). So far I'm enjoying using Restlet, which seems very straightforward, especially compared to other java web technologies. From the firstResour

RE: Re:Access to HttpSession from Restlet ...

2010-02-24 Thread Stefan Meissner
Hi Stephan, the use of SSL ID is required in the project I am working on. But as you said, REST might be not the right choice for the implementation then. thanks for your reply Stefan -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=44

RE: Re: Matlab With Restlet

2010-02-24 Thread webpost
hi Thierry Sorry for late reply for ur post.Actually i have found the reason for the behaviour.The problem was in my code in matlab.Im really sorry for taking up ur time but without ur help i would not have found the problem in side matlab code.Im really thankful for your support.(i gues

Re: Starting/stopping restlets

2010-02-24 Thread Tal Liron
True. So, I guess the only way to remove "turn off" routes/restlets is to detach them? On Wed, Feb 24, 2010 at 2:33 PM, Stephan Koops wrote: > Hi Tal, > > you could do some initialization and finalization work in your own > Restlets. > > best regards > Stephan > > Tal Liron schrieb: > > This

Re: Access to HttpSession from Restlet ...

2010-02-24 Thread Bruno Harbulot
Hi, It currently isn't possible to retrieve the SSL session ID (in the same way as it's possible to retrieve the cipher suite or the client certificates from the Restlet Request. It could make sense to implement this, and I wouldn't mind contributing a patch to do so. Feel free to put an RFE in

Re: Starting/stopping restlets

2010-02-24 Thread Stephan Koops
Hi Tal, you could do some initialization and finalization work in your own Restlets. best regards Stephan Tal Liron schrieb: > This is a basic attribute of any Restlet, but it seems like nowhere in > the framework is it used. > > My expectation was that routers, filters, etc., would not pass

Re: Access to HttpSession from Restlet ...

2010-02-24 Thread Stephan Koops
Hi Stefan, but that doesn't hinder you to use Restlet. I'm just implementing a SOAP Web Service on top of Restlet, also if it is not the idea behind it, just because it's easy to use with HTTP. best regards Stephan best regards Stephan Stefan Meissner schrieb: > Hi Stephan, > > the use of

Re: Object serialization problem with gwt

2010-02-24 Thread Thierry Boileau
Hi Xavier, please note also that the objects to be serialized need a constructor without parameter. Best regards, Thierry Boileau > Hi Kevin, > Thanks for the pointer ; unfortunately I've still the same pb... In my > previous post there are source codes, and her the libs I use (latest > snaps

Re: Object serialization problem with gwt

2010-02-24 Thread Thierry Boileau
Hello Xavier, thanks a lot for your report. This helped fixing a bug that avoids a correct behavior when the annotated interface declares only a "GET" method... Unfortunately, it took a huge to understand there was a problem. Best regards, Thierry Boileau > Hi Kevin, > Thanks for the pointer ;

RE: Re:Access to HttpSession from Restlet ...

2010-02-24 Thread webpost
Is it possible to get the SSL session IDs using Simple HTTPS server connector? Can the SSLSessionContext IDs be used in the same way as in servlet API like this: String sslID = (String)request.getAttribute("javax.servlet.request.ssl_session"); What I did so far: Server server = component.getS

RE: Re:Access to HttpSession from Restlet ...

2010-02-24 Thread Stefan Meissner
OK, does the same constraint apply for SSL sessions? Is it possible to get the SSL session IDs using Simple HTTPS server connector? Can the SSLSessionContext IDs be used in the same way as in servlet API like this: String sslID = (String)request.getAttribute("javax.servlet.request.ssl_session"

RE: Re:Access to HttpSession from Restlet ...

2010-02-24 Thread Stephan Koops
Hi Stefan, why do you want to access the session id? The architectural style REST forbid server session state. If you want to comply to the REST architecture, than you must not use it. Or do you want explicit ignore this restriction? best regards Stephan -Ursprüngliche Nachricht- Vo

Re: How to write an Universal redirector

2010-02-24 Thread asdfasdf
Hi Thierry, With WireShark I am not able to listen on the localhost communication but here is the NetCat output: D:\Programme\NCat>ncat -l -p 8080 GET /RESTfulServices/resources/customers/pkey/2176172632 HTTP/1.1 Transfer-Encoding: chunked Date: Wed, 24 Feb 2010 13:19:10 GMT Accept: */* Accept-

Re: How to write an Universal redirector

2010-02-24 Thread Thierry Boileau
Guten Tag ab, you should keep the MODE_CLIENT_DISPATCHER mode. Could you trace the sent requests/response with wireshark, for example? Or let netcat listen on the 8080 (instead of your real server) port as follow : $>nc -l -p 8080 It will show you the request that arrives from the server liste

Re: How to write an Universal redirector

2010-02-24 Thread asdfasdf
Hallo Thierry, After I have changed the mode to Redirector.MODE_SERVER_DISPATCHER my createInboundRoot method looks like this: @Override public synchronized Restlet createInboundRoot() { Router router = new Router(getContext()); router.setDefaultMatchingMode(Template.MODE_STARTS_

Re: How to write an Universal redirector

2010-02-24 Thread asdfasdf
Hi Thierry, thank you for your help. It seems, that the redirection works now, but in my GWT application I can not see any correct answer. Firefox/Firebug sais: Request header: GET /redirect/RESTfulServices/resources/customers/pkey/2176172632 HTTP/1.1 Host: 127.0.0.1: User-Agent: Restlet-Fr

Re: How to write an Universal redirector

2010-02-24 Thread Thierry Boileau
Hello, actually, the second parameter in the Redirector constructor is a template using a set of known variables (see [0]). You should be able to use the shipped Redirector, as follow (or something similar) new Redirector(getContext(), "http://192.168.100.1:8080/RESTfulServices{rr}";, Redirect

Re: ConcurrentModificationException from Resource

2010-02-24 Thread Ruben Hernando
the resource has just one Variant: getVariants().add(new Variant(MediaType.APPLICATION_XML)); thanks, Rubén Hernando Thierry Boileau 22/02/2010 17:25 Por favor, responda a discuss Para discuss@restlet.tigris.org cc Asunto Re: ConcurrentModificationException from Resource Hello Ru