Media types

2009-02-05 Thread Rémi Dewitte
Hello, New mediatypes are static fields of my application class. And I declare new extension in my application constructor. What is the best place to call MediaType#register and MetadaService#addExtension ? At what stage do you think we should include OOo and OOXML mime types in the Restlet sta

RE: Extending Directory, etc.?

2009-02-05 Thread Gordon Mohr
Thanks for the guidance and pointers to existing issues. My project priorities are options for editing and paging, but I definitely agree those are peculiar enough to belong outside the Restlet core. For now, I'm trying to extend via subclasses, even though that's a challenge given the existi

Re: Media types

2009-02-05 Thread Rémi Dewitte
Pointers: http://technet.microsoft.com/ja-jp/library/cc179224.aspx http://framework.openoffice.org/documentation/mimetypes/mimetypes.html Rémi On Thu, Feb 5, 2009 at 10:16, Rémi Dewitte wrote: > Hello, > > New mediatypes are static fields of my application class. > And I declare new extension

RE: How to integrate jetty's ThrottlingFilter

2009-02-05 Thread hnrhck
> Glad you are ready to code this! ;) My time is somewhat limited, though ;-) > Basically, you need to create an org.restlet.Filter subclass >that will contains some throttling configuration properties. Here's a first quick sketch (only limiting the amount of running requests):

DOM formatting

2009-02-05 Thread Cliff Binstock
The DOMRepresentation, writes out the DOM as-is. Certainly this is great in most cases. However, it would be nice if there was "pretty-print" option that provided easy-to-look at XML. Of course, I can (and probably will) run the DOM through my own transformation to pretty-print, but it seems

Re: DOM formatting

2009-02-05 Thread Stephen Groucutt
Hi, Have you considered subclassing DomRepresentation and overriding its createTransformer() method to set the output properties you want (in your case, OutputKeys.INDENT to yes)? I had a case where I had to modify some properties of the XML being produced, and I found that the easiest way to do

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: DOM formatting

2009-02-05 Thread Cliff Binstock
Stephen, Thanks . for the input . still seems like it should be more trivial [ DomRepresentation#setIndent(boolean), perhaps ] Cliff Binstock Coyote Reporting _ From: Stephen Groucutt [mailto:stephen.grouc...@gmail.com] Sent: Thursday, February 05, 2009 1:41 PM To: discuss@restle