RE: Java 6

2009-04-06 Thread Cliff Binstock
I can run JVM6. The issue seems to be J6/Tomcat calling Restlet (J5) calling my resources J6. I can do 5/5/5 and 6/5/5, but not 6/5/6-as far as I can tell. Cliff Binstock Coyote Reporting _ From: Malcolm Sparks [mailto:malc...@congreve.com] Sent: Thursday, April 02, 2009 11:15 AM

Java 6

2009-03-31 Thread Cliff Binstock
version errors loading the restlet application). Thanks much, Cliff Binstock Coyote Reporting -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1497681

POST redirect to GET

2009-03-16 Thread Cliff Binstock
!). It appears that the redirect is getting a POST (remember I'm inside of a POST), and not a GET. How do I redirect, setLocation, etc. so that the next URL is a GET? P.S., I tried ?method=get, but I suppose that's getting ignored because I'm not in a GET. Thanks much, Cliff Binstock

RE: POST redirect to GET

2009-03-16 Thread Cliff Binstock
Thank you! Cliff Binstock Coyote Reporting _ From: Erik Beeson [mailto:erik.bee...@gmail.com] Sent: Monday, March 16, 2009 4:09 PM To: discuss@restlet.tigris.org Subject: Re: POST redirect to GET Go back and reread the HTTP spec. In particular, read about 303 See Other

RE: DOM formatting

2009-02-06 Thread Cliff Binstock
’ sounds like it should be a number (e.g., indent 4 characters). Cliff Binstock Coyote Reporting _ From: remidewi...@gmail.com [mailto:remidewi...@gmail.com] On Behalf Of Rémi Dewitte Sent: Friday, February 06, 2009 4:02 AM To: discuss@restlet.tigris.org Subject: Re: DOM formatting

DOM formatting

2009-02-05 Thread Cliff Binstock
like use case might be a common desire. My current use case is building a Document with Elements, but no Text nodes, so the resultant XML is one unreadable line. If there is an existing trivial way to do this, great. If not, consider this a feature request. Thanks! Cliff Binstock

Magic File Feature request

2009-02-05 Thread Cliff Binstock
Another feature request: It would be very nice to have a way to tell the FileRepresentation to set the MediaType based on the magic type determination. There is no way to return the right type based a java.io.File today, is there? Thanks again, Cliff Binstock Coyote Reporting

RE: Custom conneg for (X)HTML media types

2009-01-30 Thread Cliff Binstock
)) { mtype = MediaType.TEXT_HTML; } So, the default (when reasonable) is to return XHTML. FF/Opera/etc. get the XHTML content type; IE gets HTML. Cliff Binstock Coyote Reporting -Original Message- From: Simon Reinhardt [mailto:simon.reinha...@koeln.de] Sent: Friday

RE: media type adaptor

2009-01-16 Thread Cliff Binstock
will consider this, however, maybe I can (and should) make it more consistent. Thanks for the pointing these items out. I definitely will look at both the MetadataService and the TunnelService to see if I can better use the infrastructure. Cliff Binstock Coyote Reporting _ From

RE: Retrieving the UriTemplate associated to a Resource class

2009-01-13 Thread Cliff Binstock
route: + uriPattern); request.getAttributes().put(TEMPLATE_URI_PATTERN_ATTRIBUTE, uriPattern); } return result; } }; You can then get the value with request.getAttribute Cliff Binstock Coyote Reporting

RE: media type adaptor

2009-01-13 Thread Cliff Binstock
, for example). Cliff Binstock Coyote Reporting _ From: Taylor Cowan [mailto:taylor_co...@yahoo.com] Sent: Tuesday, January 13, 2009 7:12 AM To: discuss@restlet.tigris.org Subject: media type adaptor I'm new to restlets and would like some feedback from the community on some

RE: REQUEST FireFox cache control

2008-12-09 Thread Cliff Binstock
, FF, Opera (and most certainly all others) have different ideas. Cliff Binstock Coyote Reporting _ From: Rob Heittman [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2008 6:48 PM To: discuss@restlet.tigris.org Subject: Re: REQUEST FireFox cache control Hi Cliff, Jerome

Simple Reference suggestion

2008-12-08 Thread Cliff Binstock
Another Restlet suggestion: The Reference class should definitely have a #toURI method. It should possibly also have a URI constructor. Thanks, Cliff --

REQUEST FireFox cache control

2008-12-08 Thread Cliff Binstock
It appears that Firefox doesn't respect expiration date or cache-control properly. I would like most/all of my routes to expire immediately (and require a reload). I'm guessing that Representation#setTransient sets the Cache-control: no-cache for the return headers. However, according to

RE: Restlet Directory suggestion

2008-11-26 Thread Cliff Binstock
Jerome, Inline ... Thanks for the good feed-back on Directory. 1) Could you give more information/pointers? What do you want to transform with XSLT, the directory listing? Yes, the directory listing. While quite obtuse, in Tomcat there is a built-in XML directory listing to which you can

Restlet Directory suggestion

2008-11-25 Thread Cliff Binstock
that WebdavServlet is Apache License--and not very big--it seems that you could easily support full webdav out of the box. Cliff Binstock Coyote Reporting

Usurping Directory

2008-11-21 Thread Cliff Binstock
I would like to modify the standard Directory to return something different than the file when a file is encountered. For example, peruse a directory structure (default behavior), but when you get to the bottom (an actual file), then return a report based on that file, instead of the file itself.

RE: Usurping Directory

2008-11-21 Thread Cliff Binstock
be great to put in my own HTML representation anyway, with style, logo, etc. Cliff _ From: Cliff Binstock [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2008 2:54 PM To: discuss@restlet.tigris.org Subject: Usurping Directory I would like to modify the standard Directory

routes with URIs

2008-10-31 Thread Cliff Binstock
To all, Wondering if anyone has any experience or great ideas: I have a need to specify URLs (not the uri-pattern) when fetching Resources. A simple degenerate case is this: /urls/{url} Where {url} points to some random place on the web. While I have thought of a number of workarounds, I

RE: Router swallowing exceptions

2008-10-28 Thread Cliff Binstock
I am using V1.1 RC2 Cliff Binstock _ From: Thierry Boileau [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2008 2:33 AM To: discuss@restlet.tigris.org Subject: Re: Router swallowing exceptions Hello Cliff, I get an Instantiation exception with a warning trace when

Form Processing bug?

2008-10-24 Thread Cliff Binstock
(), MediaType.TEXT_PLAIN); final Response response = getResponse(); response.setStatus(Status.SUCCESS_OK); return representation; } Cliff Binstock Coyote Reporting

RE: uriPattern exactness

2008-10-21 Thread Cliff Binstock
, error prone, and a maintenance annoyance. Even today, all of the behavior-switching is taken care of by a single abstract class. Cliff Binstock Coyote Reporting _ From: Erik Beeson [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2008 3:23 PM To: discuss@restlet.tigris.org Subject

RE: uriPattern exactness

2008-10-21 Thread Cliff Binstock
Thierry, This works great, thank you very, very much! I now have fully dynamic behaviors. Can I suggest that you make this a “standard” attribute? Regardless, this works for me. Cliff Binstock Coyote Reporting _ From: Thierry Boileau [mailto:[EMAIL PROTECTED] Sent: Tuesday

RE: uriPattern exactness

2008-10-20 Thread Cliff Binstock
) 2) Get back the as-matched URI (e.g., /foo/myFoo/bar). Note that #1 above (original URI Pattern), would enable a very flexible default handler. Cliff Binstock Coyote Reporting -Original Message- From: Jerome Louvel [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2008 4:02 AM

RE: uriPattern exactness

2008-10-17 Thread Cliff Binstock
John and Jérôme, Thanks much, this is *exactly* what I need! Cliff -Original Message- From: John D. Mitchell [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2008 7:54 AM To: discuss@restlet.tigris.org Subject: Re: uriPattern exactness On Friday 2008.10.17, at 04:01 ,

RE: uriPattern exactness

2008-10-16 Thread Cliff Binstock
, but probably not ./barlksjfljj.xml. Thanks. Cliff Binstock Coyote Reporting _ From: Thierry Boileau [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2008 2:27 AM To: discuss@restlet.tigris.org Subject: Re: uriPattern exactness Hi Cliff, I'm sorry, but I think I miss your

RE: uriPattern exactness

2008-10-16 Thread Cliff Binstock
P.S. What is worse (maybe very confusing) is that this might match too: /foo/myFoo/bar/baz/bletch/fred.xml Again, I would like to forcefully ensure that this doesn't end up matching. Cliff Binstock Coyote Reporting _ From: Cliff Binstock [mailto:[EMAIL PROTECTED] Sent

RE: uriPattern exactness

2008-10-16 Thread Cliff Binstock
router.attach(). I was hoping to do some fuzzy enforcement in a base Resource class. Cliff Binstock Coyote Reporting -Original Message- From: Aron Roberts [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2008 11:37 AM To: discuss@restlet.tigris.org Subject: RE: uriPattern exactness

uriPattern exactness

2008-10-15 Thread Cliff Binstock
/barlksjfljj.xml, I could determine that /foos/myFoo/bar was the actual match. Maybe I just missed an existing API call? :) Thanks much in advance, Cliff Binstock