Re: GuardedExample without using deprecated API

2010-10-09 Thread Stephan Koops
Hi Romain, I don't if I answered to this question: > Now it is working but I am wondering about the RoleChecker. My > RoleChecker is like this : > > @SuppressWarnings("deprecation") > private static final class RestletRoleChecker implements RoleChecker { > > public boolea

Re: Content-Disposition

2010-10-09 Thread Fabian Mandelbaum
Hello, as for the "Save as Dialog", you should do something like this: Disposition attachment = new Disposition(Disposition.TYPE_ATTACHMENT); attachment.setFilename("the file name here"); representation.setDisposition(attachment); return representation; This will set the proper HTTP headers so t

RE: Content-Disposition

2010-10-09 Thread Jerome Louvel
Hi Nirav, There is an equivalent property in the Restlet API, see this page for a complete mapping table: http://wiki.restlet.org/docs_2.0/13-restlet/27-restlet/324-restlet/130-restlet.html Best regards, Jerome -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.o​rg Noelios Technologie