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
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]
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
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
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!)
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
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
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
8 matches
Mail list logo