2.0m5 exception in tutorial Part10 Redirector

2009-10-09 Thread Patrick Logan
=site:blogspot.com+patrick+logan Oct 8, 2009 5:05:12 PM org.restlet.engine.log.LogFilter afterHandle INFO: 2009-10-0817:05:120:0:0:0:0:0:0:1%0 - - 8182GET /search kwd=patrick+logan 307 0 - 1330 http://localhost:8182 Mozilla/5.0 (Macintosh; U

RE: 2.0m5 exception in tutorial Part10 Redirector

2009-10-09 Thread Patrick Logan
: Temporarily redirecting client to: http://www.google.com/search?q=site:blogspot.com+patrick+logan Oct 8, 2009 5:05:12 PM org.restlet.engine.log.LogFilter afterHandle INFO: 2009-10-08 17:05:12 0:0:0:0:0:0:0:1%0 - - 8182 GET /search kwd=patrick+logan 307 0 - 1330 http://localhost:8182 Mozilla/5.0

RE: 2.0m5 exception in tutorial Part10 Redirector

2009-10-09 Thread Patrick Logan
: Temporarily redirecting client to: http://www.google.com/search?q=site:blogspot.com+patrick+logan Oct 8, 2009 5:05:12 PM org.restlet.engine.log.LogFilter afterHandle INFO: 2009-10-08 17:05:12 0:0:0:0:0:0:0:1%0 - - 8182 GET /search kwd=patrick+logan 307 0 - 1330 http://localhost:8182 Mozilla/5.0

2.0 Server, Finder, etc. documentation

2009-10-06 Thread Patrick Logan
I am sure I only understand the bare minimum of setting up a Server with ServerResources, etc. The doc that gets into this mostly is in Finder from what I have seen. i.e. there's not much in Server that indicates how the Class? constructor argument will be used. The tutorial makes clear it can

RE: logging framework for restlet

2009-10-01 Thread Patrick Logan
the single JAR choice is useful IMHO for new users, to convince them that Restlet is truly lightweight. Then, they learn to progressively add extensions and dependencies without feeling forced to do so I agree. I am not a new user to restlet, but this continues to be a key feature for my own

2.0m5 ClientResource.get() returns null

2009-09-30 Thread Patrick Logan
The docs for ClientResource.get() indicates a ResourceException will be thrown if the status is not a success. Given a ClientResource on a URL for a bad domain, e.g. the misspelled http://www.estlet.org; results in null rather than an exception. The log includes messages like... INFO: A

2.0m4 CharacterSet init exception

2009-09-24 Thread Patrick Logan
The code below will get the following exception on initialization of CharacterSet.class using: 2.0m4 java version 1.6.0_15 Java(TM) SE Runtime Environment (build 1.6.0_15-b03-226) Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-92, mixed mode) Mac OSX 10.5.8 Exception... bash-3.2$ java -cp

2.0m4 - Variant.equals and ClassCastException

2009-09-23 Thread Patrick Logan
In 2.0m4 on line 329 of Variant.java there is a ClassCastException if other is not an instanceof Variant. That line should only be executed if the variable result of the previous line is true. If false then equals should just return false. --

1.1m5 automatic static file redirects

2008-08-18 Thread Patrick Logan
I have a static Directory routed to http://someurl; In 1.1m4 a client could do a GET to either this URL or the URL with a / appended, and the static index.html file would be returned. I moved up to 1.1m5 over the weekend and my tests indicate a redirect to the client now occurs for

Re: Knowing if a client disconnected?

2008-08-17 Thread Patrick Logan
Paul J. Lucas paul at lucasmail.org writes: Suppose I have a service that takes some time to compute the response to. Further suppose that a client connects but then disconnects prematurely for whatever reason either before I start or while I am returning a response. Is there any way to

Re: 1.1m4 release notes --- Added a static

2008-07-02 Thread Patrick Logan
This approach forces you to manage threads explicitly and thus won't work with, for example, the Executor framework. Yeah, but on the other hand the explicit thread local API should come with a warning to be used only under duress and application developers should generally be keeping a clean

Re: 1.1m4 release notes --- Added a static “current” property to...

2008-06-19 Thread Patrick Logan
Thanks for the explanations. We had a situation where a Resource was inadvertently wired in using Spring's default singleton scope. Fortunately under high load we did see concurrency conflicts show up when setting Status. The easy fix was using the static thread-local accessor, but the true fix

1.1m4 release notes --- Added a static “current” property to...

2008-06-18 Thread Patrick Logan
From the relase notes... Added a static “current” property to Application, Request, Response and VirtualHost (using thread local variables) What's the relationship among objects returned from Response.getCurrent() or using the getResponse() instance method in, say, a Resource? The getCurrent