Re: Default routing mode change

2009-11-11 Thread Ben R Vesco
>> Regarding the enums, we did consider them in several places but they prevent >> addition of new constants by the framework or by the developer, especially >> without breaking existing code. They also produce extra artifacts in the >> Javadocs cluttering them. Regarding enums and extensibility,

DomRepresentation and schema validation

2009-11-11 Thread Jim Edwards-Hewitt
I'm trying to validate a posted DomRepresentation and respond with an error document that indicates which elements failed to validate. I have an ErrorHandler set to capture the individual SAXExceptions, like so: Validator validator = messageSchema.newValidator(); validator.setErrorHandler(new Va

DomRepresentation setIndent bug

2009-11-11 Thread legege
Hi, There seems to be a bug in DocRepresentation#createTransformer. Why this: transformer.setOutputProperty( javax.xml.transform.OutputKeys.INDENT, Boolean .toString(isIndent())); is inside the "if (docType != null)". The setIndent is not working because of this. Th

Re: Default routing mode change

2009-11-11 Thread Arjohn Kampman
Jerome Louvel wrote: > Arjohn, > > Thanks for the feed-back. Regarding the URI template syntax, it is tempting > to extend it, but there is already work being done to define an URI > Templates specification: > http://code.google.com/p/uri-templates/ > > It seems far from stable yet and focused on

RE: Default routing mode change

2009-11-11 Thread Jerome Louvel
Arjohn, Thanks for the feed-back. Regarding the URI template syntax, it is tempting to extend it, but there is already work being done to define an URI Templates specification: http://code.google.com/p/uri-templates/ It seems far from stable yet and focused on the client-side though. Roy T. Field

Re: problem returning a response status

2009-11-11 Thread Patrizio Munzi
Thanks Jerome, Sorry but I missed that mail. Regards. Jerome Louvel wrote: Hi Patrizio,   I’ve already replied to your question here: http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2413739   I hope that clarifies why you encounter this issue.

Re: Default routing mode change

2009-11-11 Thread Arjohn Kampman
Jerome Louvel wrote: > Hi Arjohn, > > Good suggestion regarding the constants naming. I've just renamed routing > mode constants of Router to follow the MODE_*_MATCH pattern such as > MODE_BEST_MATCH instead of BEST. Deprecated older values. OK, thanks. > Regarding the enums, we did consider the

RE: problem returning a response status

2009-11-11 Thread Jerome Louvel
Hi Patrizio, I’ve already replied to your question here: http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447 &dsMessageId=2413739 I hope that clarifies why you encounter this issue. Best regards,

RE: Automatic conversion with XStream

2009-11-11 Thread Jerome Louvel
Hi legege, Currently, the easiest way to customize XStream conversion is to register a custom XStreamConverter. Here are the steps: - create a subclass of XstreamRepresentation - override the createXstream(MediaType mediaType) : XStream method - customize the XStream object using XStream alias

RE: CAS authentication in Restlet server

2009-11-11 Thread Jerome Louvel
Hi all, In addition, we have a pending RFE: "Support SSO mechanisms" http://restlet.tigris.org/issues/show_bug.cgi?id=693 There is an indirect pointer there to another CAS implementation from Alex Horn. I might be a good idea to provide a dedicated Restlet extension for CAS. Anyone willing to l

RE: DELETE goes to GET !!

2009-11-11 Thread Jerome Louvel
Hi there, The call to getInfo() and get() is due to the support of HTTP conditional processing. We've fixed a related issue in ServerResource post-2.0 M5 so I would recommend to try with a recent snapshot. Otherwise, you can also called setConditional(false). Also, note that in recent snapshots t

RE: watch http request

2009-11-11 Thread Jerome Louvel
Hi guys, In addition, there is a RFE to support this directly in Restlet: "Support logging of outbound calls" http://restlet.tigris.org/issues/show_bug.cgi?id=238 Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http

RE: problem getting query portion

2009-11-11 Thread Jerome Louvel
Hi Troy, This is weird... Could you send us code snippet reproducing the issue? I would suggest to try "new Reference("**your URI**").getQuery()" first to check that the query extraction does work in your case. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.rest

RE: Serving Directory under WEB-INF

2009-11-11 Thread Jerome Louvel
Hi Fabian, It is easy to achieve using the CLAP pseudo-protocol. Use an URI like "clap://system/res/logo.png". Of course, you need to declare a CLAP client in your parent component (or via the ServerServlet configuration). Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ h

RE: Default routing mode change

2009-11-11 Thread Jerome Louvel
Hi Arjohn, Good suggestion regarding the constants naming. I've just renamed routing mode constants of Router to follow the MODE_*_MATCH pattern such as MODE_BEST_MATCH instead of BEST. Deprecated older values. Regarding the enums, we did consider them in several places but they prevent addition

RE: Building URI for Spring MVC 3.0

2009-11-11 Thread Jerome Louvel
Hi there, Doesn't it look like an issue on the server-side? I suggest contacting Spring community for support as you appear to leverage Restlet only on the client side. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~

RE: Restlet 1.1 and Restlet 2.0 coexistence

2009-11-11 Thread Jerome Louvel
Hi Sanjay, With the constraints you express it looks like a challenge indeed... Unless you can isolate each part of your client application in a separate WAR (or OSGi bundle) you will need to rely on a single Restlet version on the client side. BTW, in Restlet 2.0 I recommend leveraging the Clie

RE: ClientResource response timeout

2009-11-11 Thread Jerome Louvel
Hi Ian, You are correct. What you call the response timeout is configurable as the "socketTimeout" in our Apache HTTP Client connector or the "readTimeout" for our Java.Net extension. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologi