Restlet Client class with custom SSLSocket/SSLContext

2010-02-04 Thread webpost
Hi There, How do I make Client class in Restlet use my own custome SSLSocket/SSLContext? I already have an application that is using Restlet Client to talk to a Web Service and I've create my own X509KeyManager and X509TrustManager which I would like to use when Client sets up the SSL link to

Problem with missing connector for WAR running gwt example as stand alone Java application

2010-02-04 Thread Stefan Ukena
Hi everyone, I just joined the list because I have a problem with getting the gwt-example working with M7. First of all to the restlet developers: great work! I really like the restlet-framework a lot. Now here is my problem: I downloaded the gwt example (from

Re: Restlet Client class with custom SSLSocket/SSLContext

2010-02-04 Thread Bruno Harbulot
Hi Adrian, In Restlet 2, you can pass SslContextFactories to the client context. import org.restlet.engine.security.SslContextFactory; import org.restlet.engine.security.DefaultSslContextFactory; ... // Example with the default SslContextFactory SslContextFactory sslContextFactory = new

M7 and TunnelService fix still not working for IE7/8 (or so it seems)

2010-02-04 Thread Fabian Mandelbaum
Hello there, Restlet 2.0M7 included a TunnelService fix for UA 'relaxed' check (case insensitive matching), however this doesn't seem to have fixed much. Whenever IE states Accept: */* (which is the default in at least IE7 and IE8) I'm still getting the last-defined annotated representation back,

[SOLVED] Problem with missing connector for WAR running gwt example as stand alone Java application

2010-02-04 Thread Stefan Ukena
Hi everyone, I found a solution that works for me. It doesn't add support for WARs but at least it enables me to run the example in stand alone mode. In the org.restlet.example.gwt.server.TestServerApplication class change the line router.attach(/, new Directory(getContext(), war:///)); to

client-server file upload

2010-02-04 Thread Pierre Lecointre
Hi, I searched for one day how to upload a simple zip file with Restlet and didn't manage to get it work. So I need some help. I have an interface : public interface FileResource { @Get public ArrayListString getFiles(); @Post public void

rejectedExecution

2010-02-04 Thread Maxime Bégnis
Hi, We are using Restlet 2.0M7 with the default HTTP server. We have some kind of robot making a lot of HTTP requests(about 10/seconds) during, for big jobs, approximately 1 minute. Sometimes, when the server is busy with other requests(from users) during this big storm, the server fails with

Problems Creating Items using the addEntity Method

2010-02-04 Thread Jaime sanchez
Hi, i am trying to create a new item on a ADO .NET DataService which has all the writing permissions. i can read all the information from the web service, but i can not insert an item this is my code NorthwindModelSession session=new NorthwindModelSession(); Category categoria=new Category();

Bug in OAuthHelper?

2010-02-04 Thread ZDC
Hi, When I use Restlet (Acutally Noelios) OAuth together with OAuth lib from Netflix, there's inconsistent in handling OAuth and non-oauth parameters and causes invalid signature exception later on in Noelios OAuthHelper saves all parameters (OAuth and Query parameters, for example) into its

RE: Re: Restlet Client class with custom SSLSocket/SSLContext

2010-02-04 Thread webpost
Hi, Bruno. Thank you for your quick reply. I prefer my own implementation if it's just extending the SslContextFactory so I'll give that a try first if that works. But I'll take a look at jsslutils as well. Best regards, Adrian --