Mapping methods for a Resource?

2008-07-09 Thread Magnus Persson
I'm having trouble setting up proper routing for an application for ranking photos. My major gripe is how to properly map methods that apply for a resource, such as voting. The basic routes are /photos - List of photos, goes to PhotosResource /photos/{photoID} - Show the photo, goes to PhotoRes

Re: SSL + Virtual Hosts and Issue #489?

2008-07-09 Thread Bruno Harbulot
Hi Alex, Alex Milowski wrote: On Thu, Jul 3, 2008 at 2:36 PM, Bruno Harbulot <[EMAIL PROTECTED]> wrote: There can only be one certificate per IP address (unless using a different port), thus one certificate per connector. (An exception to this would be to use something like what GnuTLS does [1]

Re: SSL + Virtual Hosts and Issue #489?

2008-07-09 Thread Bruno Harbulot
Bruno Harbulot wrote: 2. We can set up two different Contexts for the two servers, using something along these lines: Component component = new Component(); Server server1 = new Server(Protocol.HTTPS, "host1.example.org", 8443, null); Server server2 = new Server(Protocol.HTTPS, "host2

restlet noob: getting the CLAP (right)

2008-07-09 Thread Matt Brennan
Hi there, I am just hacking up my first restlet app. I'm really impressed so far. In addition to some resources served RESTfully, i'd also like to serve some static comment of the classpath... and so have been trying a bunch of things to expose a dir on the classpath without success so

Re: restlet noob: getting the CLAP (right)

2008-07-09 Thread Matt Brennan
Forgot to add: in the war, the images directory sits at the top like: + WEB-INF +++ WEB-INF/web.xml + images +++ images/ajax-loader.gif cheers, matt (sorry for a few typos in the post!)

Re: restlet noob: getting the CLAP (right)

2008-07-09 Thread Rob Heittman
Be sure to do this in your Component constructor or another appropriate spot: getClients().add(Protocol.CLAP); Then you want something like: Directory directory = new Directory(getContext(), "clap://*system/* images/"); The "host" part of the clap: URI must be specified: one of "system" or "thr

Re: restlet noob: getting the CLAP (right)

2008-07-09 Thread Matt Brennan
Rob Heittman solertium.com> writes: > > Be sure to do this in your Component constructor or another appropriate spot: > getClients().add(Protocol.CLAP); Rob, thanks very much for your reply. At you'll note, I am extending Application and launching this with ServletServlet. That is, I'm not ex

Re: restlet noob: getting the CLAP (right)

2008-07-09 Thread Rob Heittman
I enthusiastically recommend using a 1.1 milestone or snapshot for any new development. The javadoc for ServerServlet says how to set a custom Component. (just like setting a custom Application, basically) But you can't do that in 1.0. I think the need to add extra client connectors and such wa