AWS authentication on Macs

2007-04-04 Thread Justin C . van Vorst
>From a previous discussion (link below), I note that com.noelios.restlet.util.SecurityUtils compensates for a JDK bug by setting content-type to "application/x-www-form-urlencoded" when the java version is less than 1.5.10. Unfortunately, the patch number does not apply to Apple's JVM. I'm runni

RE: SSLSession parameters?

2007-04-04 Thread Jerome Louvel
Toby, I've entered an RFE to cover this requirement: "Improve SSL support" http://restlet.tigris.org/issues/show_bug.cgi?id=281 This will not be added to version 1.0 which is too close to be released, more likely in version 1.1. So, just forget about it... for now :) Best regards, Jerome >

Re: NPE with a simple Directory example

2007-04-04 Thread Jeff Walter
Thierry, Thanks -- I knew I was missing something simple :-) Best, Jeff On 4/4/07, Thierry Boileau <[EMAIL PROTECTED]> wrote: Hello Jeff, your application has been instantiated with its parent context, i.e the one of the component. You should proceed like this component.getDefaul

Re: NPE with a simple Directory example

2007-04-04 Thread Thierry Boileau
Hello Jeff, your application has been instantiated with its parent context, i.e the one of the component. You should proceed like this component.getDefaultHost().attach("", new TestApplication(component.getContext())); Best regards, Thierry Boileau Hey All, I'm trying simply to

NPE with a simple Directory example

2007-04-04 Thread Jeff Walter
Hey All, I'm trying simply to access some files in a directory and am getting a NPE in the ApplicationDispatcher.handle method. Here's my example: TestLauncher.java import org.restlet.Component ; import org.restlet.data.Protocol; public class TestLauncher { public static void main(String[

Re: setting Client timeout

2007-04-04 Thread Thierry Boileau
Hi, Actually there is a proper way to do what you want. The javadocs of the client helper extension [1] provides a list of properties that can be set following this way : client.getContext().getParameters().add(, ); We agree to say that the information is not easy to find. We will find a way

setting Client timeout

2007-04-04 Thread Atacan, Ozgun
Hi, Is there a way to set connection timeout or read timeout parameters to our Client ? As i investigated release notes set/get timeout methods removed from org.restlet.Client class since RC-4. I know we can set this attributes in com.noelious.restlet.ext.httpclient.HttpClientH

Re: SSLSession parameters?

2007-04-04 Thread Toby Thain
On 4-Apr-07, at 4:16 AM, Jerome Louvel wrote: Hi Toby, Do you want to get an instance of javax.net.ssl.SSLSession? This seems to contain quite useful info. But I also see that you can use getSessionContext() to gain access to other sessions... May this be a confidentiality issue? What are

Re: Representation getText() encoding problem

2007-04-04 Thread Thierry Boileau
Hello Özgün, your remark has been taken into account in the SVN repository. Thanks for this report. A new "toString" method allows to use a decoding character set. It means that when calling the "getText" method on a representation, the latter provides its own character set. If null, a default

HTTP Headers

2007-04-04 Thread Dig
Hi, I would like to set the following HTTP headers in the response: Cache-Control: no-cache Pragma: no-cache Expires: 0 I can't set this directly as Restlet prevents me from setting standard HTTP headers. I've read the FAQ and the documentation and I understand that instead of trying to set sta

RE: Representation getText() encoding problem

2007-04-04 Thread Jerome Louvel
Hi Ozgun, Excellent point. This is clearly a bug that we will fix by using an InputStreamReader instead of a raw InputStream. We will also add the character set of the parent representation as a parameter of this toString() method. Best regards, Jerome > -Message d'origine- > De : Ata

Representation getText() encoding problem

2007-04-04 Thread Atacan, Ozgun
Hi, i am using getText() method of my Representations to use their content directly as a String object. But i have problems with special characters encoding . Might there be a bug inside ByteUtils.toString(InputStream inputStream) method ? StringBuilder sb = new StringBuilder(); In

Re: can't integrate restlet with tomcat

2007-04-04 Thread Thierry Boileau
Hello Ai Li, I tried the war sample [1] available on the faq page [2] and it succeed with no error. It may come from your Tomcat configuration, did you try to launch a sample servlet with Tomcat? Please follow this link [3] and particularly this one [4]. Best regards, Thierry Boileau [1] htt

RE: Getting HTTP Headers - Case sensitive?

2007-04-04 Thread Jerome Louvel
Hi Alex, No problem, the "getValues(String name)" method is case insensitive. There is also getValues(String, String, boolean) method which lets you control the case sensitivity. Best regards, Jerome > -Message d'origine- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la > pa

RE: SSLSession parameters?

2007-04-04 Thread Jerome Louvel
Hi Toby, Do you want to get an instance of javax.net.ssl.SSLSession? This seems to contain quite useful info. But I also see that you can use getSessionContext() to gain access to other sessions... May this be a confidentiality issue? What are the SSL session properties that you are actually int