Re: Receive custom exceptions from Restlet Framework in GWT client

2017-08-08 Thread Jerome Louvel
Hi Roland, That's great to hear about your success with Sencha GXT & Restlet/GWT! I hope you can contribute back your fixes regarding exceptions. Regarding v3, it's both a question of bandwidth for the core team, making it harder to innovate while we have to maintain the v2 bran

Re: Receive custom exceptions from Restlet Framework in GWT client

2017-08-08 Thread Roland Beuker
Hello Jerome, Why are you removing the GWT support from RestLet 3.X? I've developed a nice working Sencha-GXT/Restlet 'street' with a 'RestletProxy'. This works very well ... I'm only missing the annotated exceptions at this moment, but I am about to fix this. I wo

Re: Receive custom exceptions from Restlet Framework in GWT client

2017-08-08 Thread Jerome Louvel
Hi Roland, The support for annotated exception in Restlet/GWT hasn't been developed, but it should be technically feasible. Do you think you could contribute it? Happy to support you during this process. I would also like to highlight that in our future v3, we don't intend to keep s

Receive custom exceptions from Restlet Framework in GWT client

2017-08-05 Thread Roland Beuker
Restlet 2.3 introduced annotated exceptions, but this user-defined exception isn't delivered to GWT clients. The GWT client only receives the status code. This is because of the ClientProxyGenerator implementation; public void postLocation(LocationDto param1, final LocationDto>

CSRF/XSRF prevention in Restlet

2015-07-21 Thread Ramesh
I am using Restlet 2.2.0 and CookieAuthentication with an embedded Jetty plugin. In my application, I have 2 sets of pages. 1) Pages that can be viewed by an unauthenticated user 2) Pages that can be viewed only by an authenticated user In both cases, I want to prevent CSRF/XSRF attack. It

Restlet Framework 2.3.3 released

2015-06-22 Thread Jerome Louvel
Hi all, We have just released a maintenance version on the stable branch. Here is the changes log: - Bugs fixed - Redirector does not translate response's entity location reference. Issue #1069. - Fixed tunnelFilter. + symbol (%2b) converted incorrectly when media

RE: Re: GWT with Restlet JSE examples

2015-04-30 Thread Thierry Boileau
Hello Guillaume, sample code has been recovered, cf http://restlet.com/technical-resources/restlet-framework/guide/2.3/editions/gwt/examples Best regards, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447

Re: Restlet server concurrency issue: Server handle multiple requests sequentially

2015-02-19 Thread Jerome Louvel
abian Mandelbaum wrote: > Hello, > > did you try adding one of the proven production-ready HTTP server > connector jars on your class-path? for example Jetty. We use Restlet with > Jetty HTTP(S) server connector in production without a problem and with > many concurrent clients access

Re: Restlet API evolution - Conversion between Throwable & HTTP status+body

2015-02-19 Thread Jerome Louvel
Hi all, FYI, the *@Status* annotation has indeed been added in Restlet API v2.3 and works on both server and client side as discussed in this thread. Thanks, Jerome On Fri, Jun 6, 2014 at 3:55 AM, Ralph van Etten wrote: > Hi all, > > > On 06/06/2014 12:20 AM, Jerome Louvel wrote

Re: Restlet cannot process query parameter on ROOT path

2015-02-08 Thread Xybrek
status because there is > no url template that matches the "/" url. > When defining this template "/{id}" the {id} variable cannot be empty. > > Best regards, > Thierry Boileau > > 2015-02-08 7:49 GMT+01:00 Xybrek <mailto:xyb...@gmail.com&

Re: Restlet cannot process query parameter on ROOT path

2015-02-08 Thread Xybrek
status because there is > no url template that matches the "/" url. > When defining this template "/{id}" the {id} variable cannot be empty. > > Best regards, > Thierry Boileau > > 2015-02-08 7:49 GMT+01:00 Xybrek <mailto:xyb...@gmail.com&

Re: Restlet cannot process query parameter on ROOT path

2015-02-08 Thread Xybrek
status because there is > no url template that matches the "/" url. > When defining this template "/{id}" the {id} variable cannot be empty. > > Best regards, > Thierry Boileau > > 2015-02-08 7:49 GMT+01:00 Xybrek <mailto:xyb...@gmail.com&

Re: Restlet cannot process query parameter on ROOT path

2015-02-08 Thread Thierry Boileau
g this template "/{id}" the {id} variable cannot be empty. Best regards, Thierry Boileau 2015-02-08 7:49 GMT+01:00 Xybrek : > I have this code: > > @Override > public Restlet createInboundRoot() { > > Router router = new Router(getContext()); > > Redirecto

Restlet cannot process query parameter on ROOT path

2015-02-07 Thread Xybrek
I have this code: @Override public Restlet createInboundRoot() { Router router = new Router(getContext()); Redirector forward = new Redirector(getContext(), SOME_URL, Redirector.MODE_CLIENT_FOUND); router.attach("/" + "{id}", forward);

Re: Redirect whole browser traffic to restlet proxy

2015-02-04 Thread Thierry Boileau
thanks! have a good day, Thierry Boileau 2015-01-03 20:41 GMT+01:00 Xybrek : > On Tuesday, 07 October, 2014 08:12 PM, Jovan Jovanovic wrote: > > Hi everybody, > > > > after a lot of tries to build a proxy server I found it really easy > using Restlet. Although I hav

Restlet Framework 2.3.1 released

2015-02-03 Thread Jerome Louvel
Hi all, We have just pushed the first maintenance version on the "stable" branch. Here are the bug fixed: - Reintroduced registration by default of the internal HTTP server connectors in JEE edition. - FormDataSet not properly serializing text/plain files. Issue #1006.

Re: Is there any concrete example on how to use Restlet File Upload extension with Google App Engine?

2015-01-16 Thread Thierry Boileau
y factory = new DiskFileItemFactory(); factory.setSizeThreshold(1000240); // 2/ Create a new file upload handler based on the Restlet // FileUpload extension that will parse Restlet requests and // gene

Re: Is there any concrete example on how to use Restlet File Upload extension with Google App Engine?

2015-01-16 Thread Xybrek
On Friday, 16 January, 2015 05:51 PM, Thierry Boileau wrote: > Hello, > I guess you are refering to this page of the user guide: > http://restlet.com/technical-resources/restlet-framework/guide/2.3/extensions/fileupload > > The code is exactly the same for the GAE edition, except

RE: Is there any concrete example on how to use Restlet File Upload extension with Google App Engine?

2015-01-16 Thread Thierry Boileau
Hello, I guess you are refering to this page of the user guide: http://restlet.com/technical-resources/restlet-framework/guide/2.3/extensions/fileupload The code is exactly the same for the GAE edition, except that you cannot write File directly as is it forbidden by the GAE platform. You can

Is there any concrete example on how to use Restlet File Upload extension with Google App Engine?

2015-01-15 Thread Xybrek
Is there any concrete example on how to use Restlet File Upload extension with Google App Engine? There are lots of example for Restlet File Upload but not for the GAE edition of Restlet? Is there any complete Upload example to do file upload with Restlet

Re: Redirect whole browser traffic to restlet proxy

2015-01-03 Thread Xybrek
On Tuesday, 07 October, 2014 08:12 PM, Jovan Jovanovic wrote: > Hi everybody, > > after a lot of tries to build a proxy server I found it really easy using > Restlet. Although I have an obvious issue after setting all the traffic from > Chrome to go through my proxy, I get redir

Restlet Framework 2.3.0 released!

2014-12-18 Thread Jerome Louvel
Hi all, Check out the details about the new version here! http://restlet.com/blog/2014/12/10/restlet-framework-2-3-0-released/ We also updated the technical documentation on the web site with better styling, a navigation bar in the user guide and more. The Javadocs area will get the update soon

Restlet Framework 2.3 RC1 and 2.2.3 released

2014-11-28 Thread Jerome Louvel
trospector for Restlet API/JAX-RS API/Jackson annotations as well as a firewall service with rate limitation (integration with APISpark is optional), - compatibility with GWT 2.7, - Jackson extension now configured to produce more compact JSON by ignoring null values by default,

New Restlet web site and framework logo

2014-11-18 Thread Jerome Louvel
Hi all, We just released our brand new Restlet web site this morning, with a new visual identity and consolidating all our products, Restlet Framework, APISpark (GA today) and the Restlet Studio (preview) in one place: http://restlet.com Here is also the new logo: [image: Restlet Framework

Re: issues with setting Timeouts in Restlet

2014-11-10 Thread Jerome Louvel
Hi Santhos, Which version of Restlet Framework are you using? 1.1.5 is a very old one. Also, you need to let us know which HTTP client you are using as the parameters vary depending on the connector (Apache HTTP Client, Jetty or the internal/default one) Thanks, Jerome -- http://restlet.com

issues with setting Timeouts in Restlet

2014-11-10 Thread santosh pathak
hi,In one of my project,I am new to restlet. I am using 1.1.5 version and using it for consuming a REST web service. I tried creating a client and tried setting the socket and connect Timeout in the context Client client = new Client(Protocol.HTTPclient.getContext().getParameters().add

Re: Restlet 2.2.2, Jetty 8.1, disable SSLv3

2014-10-25 Thread Timothy Aanerud
Jared, The additional "disabledPrototols" parameter worked for me. But I also set the list of enabled ciphers with this: private static String _mediumStrongCiphers = // A list found on jetty website 25-Oct-2014 "TLS_DHE_DSS_WITH_AES_128_CBC_SHA " + "TLS_DHE_RSA_WITH_AES_128_CBC_SHA "

RE: Restlet 2.2.2, Jetty 8.1, disable SSLv3

2014-10-23 Thread Jared Davis
More info: Adding server.getContext().getParameters().add("protocol","TLS"); blocks a curl request with a -3 (use SSLv3.) Still a WIP as curl reports unknown protocol on a -1 (Use => TLSv1 (SSL)) command. * Connected to localhost (127.0.0.1) port 443 (#0) * SSLv3, TLS handshake, Client hello

Restlet 2.2.2, Jetty 8.1, disable SSLv3

2014-10-22 Thread Jared Davis
Hi, What is the correct way to disable SSLv3 with Jetty 8.1? I've tried disabledProtocols but it seems to have no effect. Server server = component.getServers().add(Protocol.HTTPS, ip, port); server.getContext().getParameters().add("keystorePath", keyPathname); server.getCont

Re: Cookie set in request not received at Restlet servlet end

2014-10-16 Thread Himani
After some hit and trials by using the following code I am able to retrieve cookies at server side. The documentation of Restlet says ClientResource internally calls Client. Is there a way the same can be achieved using ClientResource by setting some options ?. I want to use ClientResource as most

Cookie set in request not received at Restlet servlet end

2014-10-15 Thread Himani
I have a Test Client which makes Restlet Request as below : public class TestRestlet { public static void main(String[] args) throws IOException { CookieHandler.setDefault(new CookieManager( null, CookiePolicy.ACCEPT_ALL )); ClientResource resource = getClientResource

RE: Redirect whole browser traffic to restlet proxy

2014-10-15 Thread Jerome Louvel
Hi Jovan, Are you trying to setup a reverse proxy (server-side)? If so, you need to set the mode to MODE_SERVER_OUTBOUND and use an URI template such as "http://www.google.com/{rr}";. See Javadocs as well: http://restlet.com/learn/javadocs/snapshot/jee/api/org/restlet/routing/Redir

Redirect whole browser traffic to restlet proxy

2014-10-07 Thread Jovan Jovanovic
Hi everybody, after a lot of tries to build a proxy server I found it really easy using Restlet. Although I have an obvious issue after setting all the traffic from Chrome to go through my proxy, I get redirection loop (as also the routed URL is trying to go through proxy). Here is the code

Restlet web.xml config for new component

2014-10-01 Thread Peter Hiesmair
I have set up an App Engine Restlet Project (v 2.2.2) which returns a html or json response (web or android client) and different data from a db for different users. I have implemented HTTP basic authentication. It all works quite well. my basic setup atm (I have simplified it ofc

Re: Restlet server concurrency issue: Server handle multiple requests sequentially

2014-09-26 Thread Fabian Mandelbaum
Hello, did you try adding one of the proven production-ready HTTP server connector jars on your class-path? for example Jetty. We use Restlet with Jetty HTTP(S) server connector in production without a problem and with many concurrent clients accessing our server/services. On Fri, Sep 26, 2014

Restlet server concurrency issue: Server handle multiple requests sequentially

2014-09-26 Thread Audumbar Pujari
Scenario : - I have implemented simple restlet server. - One client(RestClient / wget) or more than one client sending GET/POST requests to server at same time. (eg: wget http://mymachine.com:8182) Expected Behavior : - Server needs to handle all requests concurrently

Problem with Restlet 2.2 server on Android

2014-08-27 Thread Josef Zapletal
Hello, I have problem with the Restlet for Android. I downloaded ZIP file (http://restlet.com/download/current#release=stable&edition=android&distribution=zip), extract it and from the "\lib" folder I copy "org.restlet.jar" file to the project "\libs"

RE: Re: Restlet 2.2.1 only serves from one thread

2014-08-25 Thread Thierry Boileau
Hello Robert, from the beginning of Restlet Framework, our most important aim is to provide a clear and rich API for developing both client and server side applications. Implementation comes later and we're fine to take shortcuts and to leverage well-established frameworks such as Jetty (

RE: Re: Restlet 2.2.1 only serves from one thread

2014-08-06 Thread Robert Barnett
Hi Thierry, Can you help me understand why the out of the box configuration is not appropriate for production? Best, Matt -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3086334

Re: Restlet 2.2.1 only serves from one thread

2014-08-06 Thread Thierry Boileau
Hello Robert, I've added an issue for that question with a few line for analysis: https://github.com/restlet/restlet-framework-java/issues/937 This issue concerns the internal HTTP server connector which can be used for development, but not for production. You can use the Jetty and S

Restlet 2.2.1 only serves from one thread

2014-08-05 Thread Robert Barnett
wo browsers, Firefox and Chrome, and make a request from each. Firefox shows Hello World after 10 seconds and Chrome after 20. Looking at the console I see that both requests were serviced by the same thread. I can the take my load generator, jMeter, and send a lot of requests in parallel t

Restlet Framework 2.2.2 released

2014-08-05 Thread Jerome Louvel
Hi all, We have just released a new version of our "stable" branch including a fix for a regression in the Android edition generation process: http://restlet.com/download/current Thanks, Jerome -- http://restlet.com @jlouvel ---

restlet gwt i18n problem(for Russian lang)

2014-07-16 Thread Walker Zhang
I'm using restlet-gwt to call web service on server. It works fine for locales like 'en' or 'fr', but the XHR failed to be sent to server due to error in RequestBuilder when I switched to 'ru'. The headers map is: {Host=localhost:8080, Date=Пт, 11 июля 201

Re: Re: Getting Started with Restlet

2014-07-12 Thread Jerome Louvel
Hi Tejas, You might want to check out the new tutorial we have been working on: https://github.com/restlet/restlet-tutorial Otherwise, there is 'Restlet in Action' book that might help. Thanks, Jerome -- http://restlet.com @jlouvel <http://twitter.com/#!/jlouvel> On Sat,

RE: Re: Getting Started with Restlet

2014-07-12 Thread Tejas Dharamsi
I have gone through these. Could you suggest any detailed tutorial with json. Thanks -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3084998

Re: Getting Started with Restlet

2014-07-11 Thread Thierry Boileau
/guide/2.2/introduction/first-steps/first-application best regards, Thierry Boileau 2014-07-11 10:27 GMT+02:00 Tejas Dharamsi : > I want to use Restlet framework for making a rest api which will act as an > interface for my java back end and angular js front end. > Can you post an exam

Getting Started with Restlet

2014-07-11 Thread Tejas Dharamsi
I want to use Restlet framework for making a rest api which will act as an interface for my java back end and angular js front end. Can you post an example which can help me move swiftly to achieve my goals I want data encoding in JSON. Thanks. do revert back at the earliest. Dharamsi

Restlet client resource 'put' and threading

2014-07-09 Thread Frank Kolnick
I have a simple Java app that uses Restlet to send messages to a remote server. A thread running in the background has these lines of code: ClientResource resourceHB = new ClientResource ( uri ); resourceHB.put ( "heartbeat" ); which works fine. I.e., the message is sent to t

Please also publish restlet artifacts in Maven Central

2014-06-26 Thread Davide Cavestro
Accessing restlet artifacts from Maven Central would ease integration, without requiring users to add a specific maven repo for restlet. I.e. in Grails projects maven central is available by default, but when you develop a plugin that depends on restlet, then plugin users have to manually add

Re: Announcing HTML newsletter and Restlet web API platform

2014-06-18 Thread Jerome Louvel
Hello, Stackoverflow is pretty active for "restlet" tagged questions, see this list of newest questions: http://stackoverflow.com/questions/tagged/restlet?sort=newest Also, some don't have an accepted answers but do have comments and discussions. What is your pending question?

Re: Announcing HTML newsletter and Restlet web API platform

2014-06-17 Thread Xybrek
On Wednesday, 07 May, 2014 12:05 PM, Jerome Louvel wrote: > Hi all, > > Starting with the Restlet Framework 2.3 M2 and 2.2.1 versions released > today, we will be announcing the new releases and security updates via > an *HTML newsletter*. As always, we cross post the content to o

Can Restlet work with Spring Boot

2014-06-16 Thread Xybrek
Before I go in a deep explanation, I just want to know if Restlet would work with Spring Boot? Much of the Spring samples I saw was not Spring boot. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3083393

OSGi version of restlet jar

2014-06-16 Thread Alagar
Hi, We are using Adobe CQ5 CMS for our project. The CMS uses OSGi based Felix server. The server expects the jars to be OSGi bundles instead of jars. Can you help me / provide pointers to download the OSGi version of restlet-osgi-2.2.1

Re: Restlet API evolution - Conversion between Throwable & HTTP status+body

2014-06-06 Thread Ralph van Etten
Hi all, On 06/06/2014 12:20 AM, Jerome Louvel wrote: > Hi all, > > In V2.3 of Restlet API, we would like to introduce automatic conversion > between Java throwable and HTTP status+body, working both ways (client > and server sides). > ... > > Would that be useful in y

Re: Restlet API evolution - Conversion between Throwable & HTTP status+body

2014-06-06 Thread Fabian Mandelbaum
t;> 2) If for any reason, my server resource class redefines one of those >> exceptions, how would this be handled? I'd expect the one redefined on my >> server resource is used... >> >> May add more comments/ideas later... >> >> Thanks. >> >>

Re: restlet support ssl

2014-06-05 Thread Jerome Louvel
Hi, Restlet 1.1.1 is a pretty old version :) If you have any chance, I strongly suggest that you upgrade to version 2.2 Otherwise, HTTPS should work in your case if you configure properly your Servlet container as it will be responsible for the HTTPS server connector in your case. Thanks

Re: Restlet API evolution - Conversion between Throwable & HTTP status+body

2014-06-05 Thread Jerome Louvel
of those > exceptions, how would this be handled? I'd expect the one redefined on my > server resource is used... > > May add more comments/ideas later... > > Thanks. > > > > On Thu, Jun 5, 2014 at 7:20 PM, Jerome Louvel wrote: > >> Hi all, >>

Re: Restlet API evolution - Conversion between Throwable & HTTP status+body

2014-06-05 Thread Fabian Mandelbaum
expect the one redefined on my server resource is used... May add more comments/ideas later... Thanks. On Thu, Jun 5, 2014 at 7:20 PM, Jerome Louvel wrote: > Hi all, > > In V2.3 of Restlet API, we would like to introduce automatic conversion > between Java throwable and HTTP sta

Restlet API evolution - Conversion between Throwable & HTTP status+body

2014-06-05 Thread Jerome Louvel
Hi all, In V2.3 of Restlet API, we would like to introduce automatic conversion between Java throwable and HTTP status+body, working both ways (client and server sides). The goal is to be able to write annotated Java interfaces including methods such as: @Get public MyBean represent() throws

转发: restlet support ssl

2014-06-05 Thread june
发件人: 陈军 [mailto:chen...@eetop.com] 发送时间: 2014年6月5日 23:40 收件人: discuss@restlet.tigris.org 抄送: cont...@restlet.com; jlou...@restlet.com 主题: restlet support ssl Hello, I have a question, I configure the restlet, through the HTTP access can be a successful visit, but access through the HTTPS return

Re: Announcing HTML newsletter and Restlet web API platform

2014-05-20 Thread Jerome Louvel
tion <http://restlet.com/about/>. Home page design was refined as well based on my previous message to better present Restlet as a comprehensive web API platform including an open source framework and a full stack PaaS. Please update your bookmarks and Maven installs to point to maven.restle

Announcing HTML newsletter and Restlet web API platform

2014-05-06 Thread Jerome Louvel
Hi all, Starting with the Restlet Framework 2.3 M2 and 2.2.1 versions released today, we will be announcing the new releases and security updates via an *HTML newsletter*. As always, we cross post the content to our blog<http://blog.restlet.com/2014/05/06/restlet-framework-2-2-1-and-2-3

Re: Restlet Framework 2.2.0 and 2.3 M1 released!

2014-03-28 Thread Jerome Louvel
Thanks Adam! BTW, here as additional requests we just had for the 2.3 road map: - Java generics as representation roots - WebSocket protocol (RESTful way) - https://github.com/restlet/restlet-framework-java/wiki/Road-map-of-version-2.3 It's time to share your needs and w

Re: Restlet Framework 2.2.0 and 2.3 M1 released!

2014-03-28 Thread Adam Mc
st for February!! > > Check out the blog post for all details: > > http://blog.restlet.com/2014/03/27/restlet-framework-2-2-0-and-2-3-m1-released/ > > Help us spread the word on social networks! > https://news.ycombinator.com/item?id=7484211 > https://twitter.com/restlet

Restlet Framework 2.2.0 and 2.3 M1 released!

2014-03-27 Thread Jerome Louvel
We are pretty happy to release this new major version, 1,5 years after 2.1.0. Almost 10 years after its launch, our open source project is thriving, with almost 90k downloads just for February!! Check out the blog post for all details: http://blog.restlet.com/2014/03/27/restlet-framework-2-2-0

Restlet Framework 2.2 RC4 released

2014-03-19 Thread Jerome Louvel
Hi all, Version 2.2 RC4 version is now ready for testing. This is the last version before 2.2.0 next week which will become the new *stable* release of Restlet Framework. Here are the main changes: - Swagger extension was updated to version 2.1 - TODO: support for Restlet API beside

Re: How to : use System.out or logger in Restlet

2014-03-19 Thread Tim Peierls
cific methods. For Filters, you can add logging in the beforeHandle and afterHandle methods. Incidentally, you can just use getLogger(). There's no need for System.out.print. --tim On Wed, Mar 19, 2014 at 1:14 AM, saurabh narayan singh < cenasaur...@gmail.com> wrote: > Hi, > i h

How to : use System.out or logger in Restlet

2014-03-18 Thread saurabh narayan singh
Hi, i have restlet and i want to check the intermediate values in various methods, for instance refer to the code below @Override public synchronized Restlet createInboundRoot(){ Authenticator auth = new myAuthenticator(); Validator val = new myValidator(getContext

Re: Java Serialization issues on Restlet versions above 2.1-M4

2014-03-17 Thread Thierry Boileau
of the wrapped representation public ObjectRepresentation(Representation) best regards, Thierry Boileau 2014-02-26 18:06 GMT+01:00 Raffaele Gravina : > Dear All, > > I'm trying to run the very simple Restlet sample app available here > http://restlet.org/learn/guide/2.2/i

Re: Restlet Framework 2.2 RC3 released

2014-03-13 Thread Arjohn Kampman
07/03/2014 02:10, Jerome Louvel wrote: > Thanks Arjohn for reporting this again. > > I have just entered an issue that we'll try to fix before 2.2.0: > https://github.com/restlet/restlet-framework-java/issues/861 > > Do you think you could contribute a fix/pull

RE: Re: RESTLET - chaining a validator and filter, why does it surpasses the filter?

2014-03-11 Thread saurabh narayan singh
Works like a charm !! My bad for ignoring/neglecting the filter.. Thankyou > > @Override > > public synchronized Restlet createInboundRoot() > > { > > Router router = new Router(); > > Validator val = new ParameterValidator(getContext()); > &g

Re: RESTLET - chaining a validator and filter, why does it surpasses the filter?

2014-03-11 Thread Tim Peierls
On Tue, Mar 11, 2014 at 3:29 AM, saurabh narayan singh < cenasaur...@gmail.com> wrote: > I have a restlet in which i want to chain a validator and filter one after > the other in the code. The code goes something like this > > @Override > public synchronized Rest

RESTLET - chaining a validator and filter, why does it surpasses the filter?

2014-03-11 Thread saurabh narayan singh
Hi everyone, I have a restlet in which i want to chain a validator and filter one after the other in the code. The code goes something like this @Override public synchronized Restlet createInboundRoot() { Router router = new Router(); Validator val = new ParameterValidator(getContext

Road map for next Restlet Framework version

2014-03-09 Thread Jerome Louvel
iding enhancements on top of current 2.2 branch in order to keep Restlet Framework on the edge of the most important innovations in the Java and Web API worlds. Below is a road map proposal. Please share your thoughts! Thanks, Jerome -- http://restlet.org @jlouvel <http://twitter.com/#!/jlouvel>

Re: Restlet Framework 2.2 RC3 released

2014-03-06 Thread Jerome Louvel
Thanks Arjohn for reporting this again. I have just entered an issue that we'll try to fix before 2.2.0: https://github.com/restlet/restlet-framework-java/issues/861 Do you think you could contribute a fix/pull request? Best, Jerome 2014-03-06 12:32 GMT-08:00 Arjohn Kampman : > H

Re: Restlet Framework 2.2 RC3 released

2014-03-06 Thread Arjohn Kampman
ce to deserialize the entity back to an empty IdSet, but that converter is never invoked and restlet passes for the idSet parameter instead. I've posted a related question to this list some time ago, see http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2950796 Looking

Re: Restlet Framework 2.2 RC3 released

2014-03-06 Thread Jerome Louvel
Hi Arjohn, We had another report for this issue that we just fixed: https://github.com/restlet/restlet-framework-java/issues/848 It will be part of 2.2 RC4 due early next week. Let us know if it works for you. Best regards, Jerome 2014-03-06 0:57 GMT-08:00 Arjohn Kampman : > Hi Jer

Re: Restlet Framework 2.2 RC3 released

2014-03-06 Thread Arjohn Kampman
Hi Jerome, Will this release also change how empty entity are treated? We've been bitten a couple of times now by restlet's habbit to convert empty entities to . Cheers, Arjohn -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsM

Restlet Framework 2.2 RC3 released

2014-03-05 Thread Jerome Louvel
Delete methods with entities - Allow configuring Apache HTTP Client's HostnameVerifier - Short term fix for XStream - remote code execution due to insecure XML deserialization Next 2.2 RC4 planned<https://github.com/restlet/restlet-framework-java/issues?milestone=21&page=1&st

Java Serialization issues on Restlet versions above 2.1-M4

2014-02-26 Thread Raffaele Gravina
Dear All, I'm trying to run the very simple Restlet sample app available here http://restlet.org/learn/guide/2.2/introduction/first-steps/first-application I'm trying to run the client on an Android device, but I get the following error: Unable to convert a [application/

Resources in Spring/Restlet project instantiated twice per request

2014-02-25 Thread gavin hackeling
Hello, I have a Spring 3.1/Restlet 2.0 web application. I see that the beans for my resources are instantiated twice per request. I suspect that this is because an instance is created for both the root and servlet contexts, but I can't figure out how to either merge the contexts or

Re: Restlet returns 404 error when http request line contains an absolute URI with an https scheme

2014-02-20 Thread Thierry Boileau
Hello John, I've entered a ticket for this: https://github.com/restlet/restlet-framework-java/issues/846 Best regards, Thierry Boileau 2014-02-19 2:05 GMT+01:00 John Graf : > We have a client for our Restlet web service that puts the absolute URI in > the http GET request line,

Restlet returns 404 error when http request line contains an absolute URI with an https scheme

2014-02-18 Thread John Graf
We have a client for our Restlet web service that puts the absolute URI in the http GET request line, which is a little non-standard. Clients are supposed to send relative URIs unless they are talking to a proxy. Nevertheless, http servers are supposed to handle this case and Restlet does not

Restlet 2.1.7 and 2.2 RC1 released

2014-02-13 Thread Jerome Louvel
Hi all, Earlier this week, we released two new versions: http://blog.restlet.com/2014/02/13/restlet-framework-2-1-7-and-2-2-rc1-released/ Please make sure to read, important security updates, updated road map, enhancements and more! Best regards, Jerome -- http://restlet.org *@jlouvel <h

Re: How to use maven with self compiled restlet

2014-02-11 Thread Jerome Louvel
Hi Ralph, Could you let us know which error message you get via Gradle? When you access directly the maven.restlet.org repository with Gradle, does it work fine? Best, Jerome 2014-02-09 23:51 GMT-08:00 Ralph van Etten : > Hi, > > I wanted to try the newest bugfixes and cloned th

How to use maven with self compiled restlet

2014-02-10 Thread Ralph van Etten
Hi, I wanted to try the newest bugfixes and cloned the restlet repo and build it myself with ant -Ddo-maven=true It compiled fine and created a dist/maven2 I tried using that directory as repository with Gradle but it did not work. It does not recognize the directory as maven repo. Is there

Re: Re: Restlet, jackson and @JsonTypeInfo

2014-01-27 Thread Tim Peierls
What arguments are you passing to @JsonTypeInfo? On Mon, Jan 27, 2014 at 6:57 AM, Jon Finanger wrote: > I'm trying to figure out how to get the android client to automatically > convert the representation into the correct Objecttype without using > mapper.convertValue(...) > > When looking at t

RE: Re: Restlet, jackson and @JsonTypeInfo

2014-01-27 Thread Jon Finanger
I'm trying to figure out how to get the android client to automatically convert the representation into the correct Objecttype without using mapper.convertValue(...) When looking at the representation sent from the server i see that the type information is not present. [{"name":"site1","siteOw

Two new beta products for Restlet

2014-01-17 Thread Tal Liron
After many dev releases, I'm happy to announce the betas for two new products of interest to Restlet users. Both of these products require JVM 6+, but also make use of the new Nashorn engine when run on JVM 8. SINCERITY This is a package/bootstrapping manager for the JVM. It comes

Re: Restlet client version 2.1.6, SSL configuration on Android

2014-01-13 Thread Thierry Boileau
Hello Mark, I'm also trying to figure out what happens. I'll keep you informed. Best regards, Thierry 2014/1/12 Mark Petrovic > Well, I'm making progress. My original code failed to expand the Android > R resource id's into actual strings. So my URL was horribly mangled. I > fixed that. >

RE: Restlet client version 2.1.6, SSL configuration on Android

2014-01-11 Thread Mark Petrovic
Well, I'm making progress. My original code failed to expand the Android R resource id's into actual strings. So my URL was horribly mangled. I fixed that. But I still see this exception when connecting over https: Caused by: Internal Connector Error (1002) - No available client conne

RE: Restlet client version 2.1.6, SSL configuration on Android

2014-01-11 Thread Mark Petrovic
I worked more on this, but to no avail. Here is my new set of dependencies, which seems more correct given the "net" jar and ssl support are both on the classpath: dependencies { compile 'com.google.android:support-v4:r7' compile 'com.google.code.gson:gson:2.2.4' compile group: "org

Restlet client version 2.1.6, SSL configuration on Android

2014-01-11 Thread Mark Petrovic
Hello. I am new to Restlet client programming. I am attempting to use Restlet client 2.1.6 on Android. I have read the documentation on SSL config by way of DefaultSslContextFactory, as well as having read StackOverflow articles on configuring an HttpsClientHelper. I chose the latter route

RE: Restlet + GWT ConstraintViolation

2014-01-09 Thread Guillaume Pelletier
erent client, then swapping the converter on the classpath isn't going to be the full story and will come with some additional leg work to do on the various clients I'll need. I want a better solution. It shouldn't be out of reach for Restlet & its GWT port to handle these

RE: Restlet + GWT ConstraintViolation

2014-01-08 Thread Koen Maes
PS: deserialization on the client is not an issue. Every constraint violation is identified by a unique constant. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3071376

RE: Restlet + GWT ConstraintViolation

2014-01-08 Thread Koen Maes
Hi Guillaume Generally speaking, in GWT you would like to have the constraint violations thrown the Editor framework on the client side. But there are of course some constraint violations that can only be checked server-side, e.g. unique violations that need a query to check the validity. For

Restlet + GWT ConstraintViolation

2014-01-08 Thread Guillaume Pelletier
I'm trying to implement a scheme to have the Editor framework on the GWT client used properly with lists of ConstraintViolations but to be frank I doubt my approach makes any sense at this point. Initially I thought about doing it by providing my own StatusService and populate the response enti

Re: Restlet, jackson and @JsonTypeInfo

2014-01-07 Thread Thierry Boileau
Hello, I think that the following will also work: @Get public ArrayList myGet() { ... } Best regards, Thierry Boileau 2014/1/7 Tim Peierls > One problem is that the generic type formal parameter T doesn't convey > enough information for the annotation-based code to reconstruct the correct > r

Re: Restlet, jackson and @JsonTypeInfo

2014-01-07 Thread Tim Peierls
One problem is that the generic type formal parameter T doesn't convey enough information for the annotation-based code to reconstruct the correct result type. Try creating a type that embeds the actual value of the type parameter, e.g., SiteDaoArrayList extends ArrayList (or SiteDaoArrayList conta

RE: Restlet, jackson and @JsonTypeInfo

2014-01-07 Thread Jon Finanger
I was able to convert the LinkedHashMap values to ArrayList using the ObjectMapper in my clientcode: ObjectMapper mapper = jacksonConverter.getObjectMapper(); ArrayList sites = mapper.convertValue(tmp, new TypeReference>() {}); But getting this wi

  1   2   3   4   5   6   7   8   9   10   >