Re: Using MetadataService to specify the default media type

2012-03-16 Thread Avi Flax
head, it seems to be around 20% of the time. Can you suggest any theories for why this might be happening, and some possible ways to prevent this from happening? Thanks! Avi Avi Flax » Arc90 » http://arc90.com Kindling » Innovation through Collaboration » http://kindlingapp.com Readability » Enjoy

Re: Using MetadataService to specify the default media type

2012-02-14 Thread Avi Flax
Ping? On Wed, Feb 1, 2012 at 12:05, Avi Flax a...@arc90.com wrote: Jerome, I’m using 2.0, and I need a way to set the default variant of my resources. I’m frustrated because I’d think this’d be a common need and it really should be easier and clearer how to do this. I need to support

Re: Using MetadataService to specify the default media type

2012-02-01 Thread Avi Flax
to make this work in the resource I’m working on today — I might just do something hacky like this: if (acceptHeader != null acceptHeader.contains(application/xhtml+xml) ! acceptHeader.contains(text/html)) representation.setMediaType(MediaType.APPLICATION_XHTML); Thanks, Avi Avi Flax

Documentation on Component-based Client reuse

2011-11-07 Thread Avi Flax
I’ve always had a vague awareness that when an application used a Component, somehow instances of Client would be reused, somehow automatically behind the scenes. Is this still the case with 2.0 and/or 2.1? If so, can anyone point me to some documentation on how this works? Thanks! Avi

Setting timeout on built-in client connector of 2.0

2011-03-22 Thread Avi Flax
parameter which would set the timeout for the built-in client connector, even when using the Client class directly. I’d appreciate any pointers on this! Thanks, Avi Avi Flax » Partner » Arc90 » http://arc90.com Readability » Enjoy Reading, Support Writing » http://readability.com Kindling » Innovation

405 on unsupported media type

2010-08-27 Thread Avi Flax
Content Type. I think that'd be more semantically correct. Does this make sense? I personally would like to see this change made. Thanks, Avi Avi Flax » Partner » Arc90 » http://arc90.com Kindling: Innovation through Collaboration » http://kindlingapp.com

Re: 405 on unsupported media type

2010-08-27 Thread Avi Flax
Ah, yes, definitely. My bad, thanks. On Fri, Aug 27, 2010 at 16:27, Jonathan Hall jonrh...@gmail.com wrote: I believe that's a  415. Jon On 27/08/10 19:33, Avi Flax wrote: Hi all, I'm using 2.0 jse. I've got a method that has this signature: @Post(form) public Representation accept

Simplest way to return an error message?

2010-08-21 Thread Avi Flax
to return an HTML document containing the message. So am I missing something? If not, maybe StatusFilter should be updated to include the Status description? Thanks! Avi Avi Flax » Partner » Arc90 » http://arc90.com Kindling: Innovation through Collaboration » http://kindlingapp.com

[JOB] Developer Needed in New York

2009-12-18 Thread Avi Flax
. PLEASE don't reply to the list, unless it's to lambast me for spamming. Thanks, and Happy Hanukkah, Merry Christmas, Happy Winter, etc! Avi -- Avi Flax » Partner » Arc90 » http://arc90.com ➙ Have you tried Kindling‽ http://kindlingapp.com

Re: Restlet 2.0 Best Practices

2009-11-24 Thread Avi Flax
the community are highly appreciated. This is highly specific to your application. 4) What does your Restlet production setup look like? Can you elaborate? What kind of information are you looking for? -- Avi Flax » Partner » Arc90 » http://arc90.com ➙ Have you tried Kindling‽ http

Re: Restlet 2.0 M6 and 1.1.7 released

2009-11-21 Thread Avi Flax
On Fri, Nov 20, 2009 at 14:45, Jerome Louvel jerome.lou...@noelios.com wrote: Thierry and I worked hard over the past weeks to deliver our last milestone before 2.0 feature freeze. We received a lot of contributions as well, which was a great source of motivation. In addition, we are also

Re: Trouble Setting Jetty Parameters with Restlet 1.0

2009-10-02 Thread Avi Flax
On Fri, Oct 2, 2009 at 04:22, Jerome Louvel jerome.lou...@noelios.com wrote: This looks like a bug to me. It was actually fixed in Restlet 2.0 trunk, so I have just ported it back to Restlet 1.1. Ahh, that makes sense. Good news, thanks! Thanks for the report! My pleasure!

Re: Trouble Setting Jetty Parameters with Restlet 1.0

2009-10-02 Thread Avi Flax
On Fri, Oct 2, 2009 at 04:22, Jerome Louvel jerome.lou...@noelios.com wrote: This looks like a bug to me. It was actually fixed in Restlet 2.0 trunk, so I have just ported it back to Restlet 1.1. Thanks for the report! One last thought… I don't know if I'm unique in this or not, but this seems

Re: Restlet 1.1.6 released

2009-10-02 Thread Avi Flax
On Mon, Sep 28, 2009 at 11:42, Thierry Boileau thierry.boil...@noelios.com wrote: Restlet 1.1.6 has just been released. 12 bugs have been fixed and some libraries have been upgraded. Thanks Thierry, it's good to see 1.1 get better and better. One thought: it would be helpful if these updates

Re: Restlet 1.1.6 released

2009-10-02 Thread Avi Flax
On Fri, Oct 2, 2009 at 09:54, Jerome Louvel jerome.lou...@noelios.com wrote: Good idea. At least we'll try to give notice of 1.1 releases in the blog at least when it is released in sync with a 2.0 version (which is mostly always the case). Great, thanks! A thought: I know the focus is 2.0

Re: Trouble Setting Jetty Parameters with Restlet 1.0

2009-10-02 Thread Avi Flax
On Fri, Oct 2, 2009 at 09:50, Jerome Louvel jerome.lou...@noelios.com wrote: This only affect the Jetty connector, but this is annoying indeed. Note that we do fallback on the default (255) value in this case. Thanks for taking this seriously. I actually think it's more than annoying — 255

Re: Trouble Setting Jetty Parameters with Restlet 1.0

2009-09-24 Thread Avi Flax
On Wed, Jun 17, 2009 at 02:34, Jerome Louvel jerome.lou...@noelios.comwrote: Sorry, but we don't maintain Restlet 1.0 anymore except within our professional support plans... Is it possible for you to upgrade to Restlet 1.1? Maybe you should try updating the Jetty JARs as well. Hi Jerome, I

Re: Checking for Request Entity

2009-08-04 Thread Avi Flax
On Tue, Jul 28, 2009 at 05:34, webp...@tigris.org wrote: Dont know why getRequest().isEntit​yAvailable() returns true, however getRequest().getEntity().getMediaType() return null if the request entity is missing. OK, thanks, that's helpful. I'd still like to understand the behavior though.

Checking for Request Entity

2009-07-27 Thread Avi Flax
-- Avi Flax » Partner » Arc90 » http://arc90.com -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2376034

Invalid Success Status When No Client Connector Available?

2009-03-12 Thread Avi Flax
, a connector error? 200 doesn't seem correct. -- Avi Flax » Lead Technologist » Partner » Arc90 » http://arc90.com -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1314505

Warning and SocketException when using 1.1.2, built-in server, and FreeMarker

2009-02-19 Thread Avi Flax
someone else can! Thanks, Avi -- Avi Flax » Lead Technologist » Partner » Arc90 » http://arc90.com -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1196234

Re: POST/PUT requests take more than 2 seconds

2009-01-15 Thread Avi Flax
And which HTTP server connector are you using? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1026632

Re: contributing - areas of interest

2008-12-08 Thread Avi Flax
On Mon, Dec 8, 2008 at 03:04, Raif S. Naffah [EMAIL PROTECTED]wrote: i'd like to contribute to this project in my free time. Raif, that's great! Can I suggest RFE 658, Add support for JSecurity? http://restlet.tigris.org/issues/show_bug.cgi?id=658 Since you're interested in security, this

Re: contributing - areas of interest

2008-12-08 Thread Avi Flax
On Mon, Dec 8, 2008 at 11:55, Xavier Méhaut [EMAIL PROTECTED] wrote: I didn't know JSecurity before the previous email... It seems quite powerful and interesting? I actually hadn't known about it before I saw that RFE either, and I had the same impression. (As an aside: this is an aspect of

Re: Distributed Caching solution.

2008-11-24 Thread Avi Flax
does and what sort of data it maintains, and which use cases it's focused on, would matter far more. A quick Google search finds many pages discussing the question of EHCache vs Memcached; this one looks pretty good: http://www.hugotroche.com/my_weblog/2008/06/ehcache-vs-memc.html -- Avi Flax

Re: Restlet MVC

2008-11-21 Thread Avi Flax
Bravo, Rob! I agree 100%! FYI, the FAQ has an entry on MVC: http://www.restlet.org/documentation/1.1/faq#10 Not sure who wrote the answer, but if you do decide to follow MVC, I think the approach presented in the answer makes a lot of sense. Avi -- Avi Flax » Lead Technologist » Partner » Arc90

Re: Restlet MVC

2008-11-21 Thread Avi Flax
On Fri, Nov 21, 2008 at 09:44, Tim Peierls [EMAIL PROTECTED] wrote: Maybe the first line of that FAQ answer should be modified to avoid the word implementation, e.g., There is a rough correspondence between the MVC pattern [cite?] and the Restlet framework: I think we can just change the

Re: Enhancement for Router to ignore double slashes?

2008-11-05 Thread Avi Flax
On Mon, Nov 3, 2008 at 19:09, Avi Flax [EMAIL PROTECTED] wrote: ...I'm interested in a way to put the Router or the Route into a mode wherein they would ignore the double slashes somehow, or collapse them together into a single slash. I tried to follow the Routing code but I couldn't figure

Enhancement for Router to ignore double slashes?

2008-11-03 Thread Avi Flax
it out. So my question: would there be interest in an enhancement such as this? Or does anyone have a suggestion on how to achieve this via filters or services or something like that? Thanks! -- Avi Flax » Lead Technologist » Partner » Arc90 » http://arc90.com

Re: Restlet 1.1.1 released

2008-10-31 Thread Avi Flax
On Fri, Oct 31, 2008 at 13:08, Stephan Koops [EMAIL PROTECTED] wrote: one the download site Restlet 1.1.1 is marked as testing. Is this planned? I was just wondering this myself. Shouldn't 1.0.11 be relabeled as an archived version at this point, and 1.1.X as stable?

Re: Django’s Cache Framework

2008-09-15 Thread Avi Flax
On Mon, Sep 15, 2008 at 11:40, Rob Heittman [EMAIL PROTECTED] wrote: I agree! Want to tack that reference on to http://restlet.tigris.org/issues/show_bug.cgi?id=25 ? Cool, done!

Django’s Cache Framework

2008-09-15 Thread Avi Flax
to this approach is that caching is totally independent from the app framework and can be swapped out for a true gateway (reverse proxy) cache at any time. here: http://tomayko.com/linkings/ (no direct link) -- Avi Flax » Lead Technologist » Partner » Arc90 » http://arc90.com

Re: INFO in NRE SecurityUtils

2008-09-12 Thread Avi Flax
On Fri, Sep 12, 2008 at 04:17, Thierry Boileau [EMAIL PROTECTED]wrote: that makes sense. I notice also that in Restlet 1.1 no message is logged when the response is successfully parsed (class HttpBasicHelper). I've updated the svn repository. Great, thanks Thierry!

INFO in NRE SecurityUtils

2008-09-11 Thread Avi Flax
? Thanks, Avi -- Avi Flax » Lead Technologist » Partner » Arc90 » http://arc90.com

Re: 1.0 to 1.1 Migration Guide

2008-08-07 Thread Avi Flax
This is a GREAT idea, I'd love to see this! I'm currently working on 1.0 and 1.1 apps, so I might be able to help. Let me know if there's something specific I can help with. -- Avi Flax » Lead Technologist » Partner » Arc90 » http://arc90.com

Re: Restlet 1.1 M5 released

2008-08-07 Thread Avi Flax
, and well-tested release of Great Software. Thanks Jerome, Thierry, and all the other contributors! -- Avi Flax » Lead Technologist » Partner » Arc90 » http://arc90.com

Re: XForm integration with the RestLet framework possible?

2008-07-08 Thread Avi Flax
On Mon, Jul 7, 2008 at 7:30 PM, ilango [EMAIL PROTECTED] wrote: Could you elaborate more on this Resource subclass? See: http://www.restlet.org/documentation/1.0/firstResource or:http://www.restlet.org/documentation/1.1/firstResource depending on which version of Restlet you're using.

Re: XForm integration with the RestLet framework possible?

2008-07-07 Thread Avi Flax
to be everything for everyone. Why not just write the glue yourself in a Resource subclass? -- Avi Flax » Lead Technologist » Partner » Arc90 » http://arc90.com

Re: Use a proxy server with a Client?

2008-06-13 Thread Avi Flax
to the bug report. I'd rather set properties on the client context, like configuring server properties, though ... If enough people think this is a big deal, I'm happy to propose a patch and see if Jerome's willing to bump it earlier. - R On Thu, Jun 12, 2008 at 6:55 PM, Avi Flax [EMAIL PROTECTED

Use a proxy server with a Client?

2008-06-12 Thread Avi Flax
Hi all, does anyone know of a way to have a Client use a proxy server when making a request? Thanks! -- Avi Flax » Lead Technologist » Partner » Arc90 » http://arc90.com

Re: Published Article on Groovy and Restlet

2008-06-04 Thread Avi Flax
Thanks Jerome, I'm glad you liked it! Part 2 is coming soon. -- Avi Flax » Lead Technologist » Partner » Arc90 » http://arc90.com

Published Article on Groovy and Restlet

2008-06-03 Thread Avi Flax
. If you're interested in seeing more please let me know! Goodnight! Avi -- Avi Flax » Lead Technologist » Partner » Arc90 » http://arc90.com

Re: Serving PDF content

2008-04-08 Thread Avi Flax
that class, or thought it was abstract, or something. -- Avi Flax » Partner » Compulsive Technologist » Arc90 » http://arc90.com

Re: Serving PDF content

2008-03-26 Thread Avi Flax
and submit a patch for it. Thanks, Avi -- Avi Flax » Partner » Compulsive Technologist » Arc90 » http://arc90.com

Re: Congratulation!Restlet: Official Developer's Guide to RESTful Web Applications in Java will be out!

2008-02-26 Thread Avi Flax
This is great news! I've pre-ordered five copies for Arc90. I'm really looking forward to the book! Avi -- Avi Flax » Partner » Compulsive Technologist » Arc90 » http://arc90.com On 2/25/08, Jerome Louvel [EMAIL PROTECTED] wrote: For those wanting to pre-order, I've added an affiliated link

Re: RESTClient

2008-02-19 Thread Avi Flax
was released on January 30th, so if anyone tried the 1.x versions, you may want to download 2.0 and check it out. http://code.google.com/p/rest-client/ Avi -- Avi Flax » Partner » Compulsive Technologist » Arc90 » http://arc90.com On 11/30/07, Paul J. Lucas [EMAIL PROTECTED] wrote: On Nov 30

Re: Client Timeout

2008-02-14 Thread Avi Flax
in a Component. We also have connectors like JDBC where I'm not sure if we'll be able to take advantage of it. We can just ignore the property in this case. Do you want to propose patch or at least enter a RFE? Best regards, Jerome -Message d'origine- De : Avi Flax [mailto

Re: Client Timeout

2008-02-13 Thread Avi Flax
Sorry to resurrect an old thread, but I was just thinking about this... I think it might be useful if both Client and Request had a setConnectTimeout() method. This seems to me like a very general and very useful parameter, one which deserves API support, instead of being buried in connector

Re: Restlets and Asynchronous Request Processing

2008-01-23 Thread Avi Flax
, John Fallows -- Avi Flax » Partner » Arc90 » http://arc90.com

Re: Shell extension for Restlet

2008-01-16 Thread Avi Flax
Sounds good! Thanks, Avi -- Avi Flax » Partner » Arc90 » http://arc90.com

Re: Restlet 1.0.6 released

2007-11-08 Thread Avi Flax
Great news! Thanks Jerome, Thierry, and every contributor! -- Avi Flax | Arc90 | http://arc90.com On 11/8/07, Jerome Louvel [EMAIL PROTECTED] wrote: Hi all, The sixth maintenance release of Restlet 1.0 is available. It fixes several bugs found in version 1.0.5 and provides a few

Re: Slow to retrieve Request Entity?

2007-10-09 Thread Avi Flax
isolate it. - Original Message - From: Avi Flax [EMAIL PROTECTED] To: discuss@restlet.tigris.org Sent: Monday, October 8, 2007 11:09:30 PM (GMT-0500) America/New_York Subject: Slow to retrieve Request Entity? I seem to be having some kind of performance problem trying to retrieve

Slow to retrieve Request Entity?

2007-10-08 Thread Avi Flax
configuration? Am I missing something? Thanks for any help!!! -- Avi Flax Lead Technologist arc90 | http://arc90.com

Re: How to use JDBC Extension?

2007-07-27 Thread Avi Flax
classic solutions such as using Hibernate, iBatis or EJB directly within your Restlet Resources (eventually directly using JDBC if you prefer). Best, Jerome Jerome, Thanks! This is exactly what I needed to know. -- Avi Flax Lead Technologist arc90 | http://arc90.com

Re: best way to iterate over a NodeSet in a DomRepresentation

2007-07-24 Thread Avi Flax
shorthand to parse XML into a Document. I'd think it might be better for Restlet to reduce dependencies, and it'd be OK to use the more verbose syntax here. Thanks, Avi -- Avi Flax Lead Technologist arc90 | http://arc90.com

Re: form submission fails to redirect on success

2007-07-02 Thread Avi Flax
Jerome: That seems like a great solution. I took a look at Response.java and I really like that you also added a setLocationRef() method, but kept setRedirectRef() and getRedirectRef(), both for backwards compatibility and because sometimes those methods really do make sense. Very nice! Thanks,

Re: Restlet and Velocity template location.

2007-07-02 Thread Avi Flax
in how to reference templates, so I'm not sure my experience/setup would be helpful for you. If you'd like, though, I'd be happy to share. Hopefully someone will have some advice for your specific situation. -- Avi Flax Lead Technologist arc90 | http://arc90.com On 7/2/07, Stuart Owen [EMAIL

Re: form submission fails to redirect on success

2007-06-29 Thread Avi Flax
() - and the two should probably be mutually exclusive somehow, or they would collide and/or overwrite each other. Avi -- Avi Flax Lead Technologist arc90 | http://arc90.com On 6/29/07, Thierry Boileau [EMAIL PROTECTED] wrote: Hello Michael, after reading the spec, SUCCESS_CREATED shows that the operation

Re: Conditional GETs?

2007-06-18 Thread Avi Flax
Jerome, I'm eagerly awaiting this snapshot! No pressure, but are we looking at a matter of days here, or is it more like weeks? Thanks! Avi On 6/16/07, Jerome Louvel [EMAIL PROTECTED] wrote: Hi all, This RFE is now fixed in SVN trunk and will be testable in the upcoming 1.1 snapshot. Great

Re: URI matching again

2007-06-08 Thread Avi Flax
that. No matter what order I attach the routes they seem to end up in the same order in a RouteList. I also need to have optional parameters attached to all of the urls. Any ideas? Best Regards, Jon -- Avi Flax Senior Technologist arc90 | http://arc90.com

Re: afterHandle logging

2007-06-08 Thread Avi Flax
of Java logging, not of LogFilter. In case anyone else is trying to do the same thing, here's a good reference: http://www.javalobby.org/java/forums/t18515.html -- Jim -- Avi Flax Senior Technologist arc90 | http://arc90.com