Re: Possible bug in DateUtils.ImmutableDate

2008-06-17 Thread Mike Brzozowski
Jerome Louvel contact at noelios.com writes: JUnit tests are very easy to write. Look at the simple example attached. Done. Sorry it took so long... http://restlet.tigris.org/issues/show_bug.cgi?id=516 ... I see you committed some changes to DateUtils that may render it obsolete. But you

Re: Long stream of IOExceptions from getEntityAsForm

2008-06-05 Thread Mike Brzozowski
Jerome Louvel contact at noelios.com writes: Good catch! This is now fixed as suggested in SVN trunk and 1.0 branch. For those not using the SVN trunk, the workaround that worked for me was increasing the header buffer to 8 KB: private static final int HEADER_BUFFER = 8 * 1024;

Re: Possible bug in DateUtils.ImmutableDate

2008-05-28 Thread Mike Brzozowski
Regarding the conditional GET support, is there any reason why you don't rely on the built-in support that we provide for Resource subclasses? I wasn't aware this support was built-in... is there documentation somewhere for this? All I needed was to be able to set the Last Modified header and

Re: Adding Cookies to a Client Request

2008-01-28 Thread Mike Brzozowski
William Pietri william at scissor.com writes: request.getCookies().add(new Cookie(PreferredLanguage,en-us)); Hi David and William, I think you might need to try a slightly different method. What works for me is creating a CookieSetting object, like this: final CookieSetting cookie = new

Setting user identifier in access log?

2008-01-28 Thread Mike Brzozowski
Hi, I've implemented my own authentication scheme using cookies and LDAP. Is there a way to set the remote user field (or one of the other fields) so that users will show up in the access log? (then they'll get parsed by Analog) Thanks for your help, and I should also say thanks for building and

Long stream of IOExceptions from getEntityAsForm

2008-01-25 Thread Mike Brzozowski
Hi, I'm running a Restlet (1.0.7) webserver and recently implemented an AJAXish call using the Yahoo UI Connect library. It normally works but on some edge case I haven't found, it causes the server to spurt a literally endless stream of these exceptions: Jan 25, 2008 6:01:45 PM

Setting Expires headers for static Directory Restlets

2007-12-05 Thread Mike Brzozowski
Hi, The Directory Restlet is a really convenient way to serve an entire directory of static content. But by default it all expires within 10 minutes. Is there a way to change a Directory so that it returns files with a custom time to live (the way FileRepresentation does for individual files)? If

Re: Lightweight alternative to Reference

2007-11-29 Thread Mike Brzozowski
Kevin Conaway kevin.conaway at gmail.com writes: Would it be possible add a new class called URI to facilitate building URIs to use in client calls? It can be cumbersome to either build the uri as a string by hand or use the heavy Reference class.I suggest adding a lightweight class called URI

NTLM authentication

2007-11-29 Thread Mike Brzozowski
Hi, I've got a Restlet 1.0.6-based application and I'd like to implement authentication for a subset of functionality. There's a nice example of how to use HTTP Basic authentication, but I noticed there's also a ChallengeScheme.HTTP_NTLM constant defined. It seems to be relatively undocumented;