Re: Re: What to do about sessions?

2010-04-21 Thread Stephen Groucutt
REST services are definitely chatty, especially when compared to SOAP webservices that might perform N operations in one shot. To me, the chattiness goes hand-in-hand with the HATEOAS concept, where a client picks its way through multiple server resources via links that are present in the

Re: Restlet 2.0 Security

2009-10-23 Thread Stephen Groucutt
I'm not sure if this answers your question directly, but you can definitely limit accessibility on a resource basis, by using the riap protocol to map it (see a little more detail). Resources mapped using riap

Re: Detecting client's disconnection

2009-07-27 Thread Stephen Groucutt
Hi, You might find the following article helpful: In general, I think a REST API might handle your situation (a request that cannot complete immediately) by returning 202 Accepted, along with either body content or a

Re: Guidance on Atom/APP in Restlet

2009-07-17 Thread Stephen Groucutt
I'll qualify this by saying that I know of plans to use APP in enterprise applications, but I haven't ever actually seen anything in the enterprise. There's a good presentation on APP's capabilities in non-trivial environments over at

Re: list of resource

2009-04-07 Thread Stephen Groucutt
format powered by GS1 XML. -My problem is to understand how makes the client thet have to get or post a resource to know resource's location and therefore the final url to use in the GET or POST HTTP messages to refer to the correct locations. Here your responce Stephen Groucutt said: Do

Re: list of resource with relatives url

2009-04-02 Thread Stephen Groucutt
Do you mean, how can a client know what URIs to use when performing service operations? It really doesn't have anything to do with Restlet in particular, and I could be wrong here, but I think this is a still-evolving aspect of REST. For a while, WADL seemed to be gaining some momentum, but there

Re: Re: return from acceptRepresentation

2009-01-09 Thread Stephen Groucutt
Have you tried the version of setEntity that has a MediaType as its second argument? That should allow you to specify the content type you want to return. In our project, we use the version of setEntity() that accepts a String and a MediaType for purposes of returning XML data, and it seems to

Re: Metadata service

2008-12-23 Thread Stephen Groucutt
I'm not sure if this is the complete answer, but is your tunnel service enabled, and set to tunnel extensions? You can do something like (from an Application): getTunnelService().setEnabled(true); getTunnelService().setExtensionsTunnel(true); On Tue, Dec 23, 2008 at 4:04 PM,

Re: accessing restlet web (deployed on tomcat for instance) resources from a not java client, is it possible?

2008-12-16 Thread Stephen Groucutt
Hi Antonio, You really can use anything that can do an HTTP request - you could use cURL, you could write something in C++ using boost asio, perl/python have standard HTTP libraries, and there are many more. I think the only reason you would need to worry about the Representation classes

Re: ServletServlet example

2008-11-25 Thread Stephen Groucutt
I think you can get it here: Does the FAQ need to be updated, or should that be a valid repository? The root,, appears to be an unconfigured

Re: restlet client

2008-09-16 Thread Stephen Groucutt
I think you must specify the representation type you wish to accept in your Client. When you use a web browser to test, the Accept: header field already contains MIME types that a browser would want to receive, so that would explain why it works when you view it in a browser. If you have a tool