RE: Re: How to get HttpServletResponse object in restlet

2010-01-13 Thread Sam Bloomquist
Ok, I have a related question. I've found out how to get to the HttpServletResponse object and have passed that to the Blobstore API, where it was successfully written to and committed. Is there an example of how to turn that HttpServletResponse object into a Representation that can be

RE: Re: How to get HttpServletResponse object in restlet

2010-01-11 Thread Sam Bloomquist
Thanks for the response, Thierry. I'll take a look at those classes and see what I can come up with. Maybe I'll be able to pitch in on that issue if I get something worked out in the next week or two. Thanks, Sam --

RE: Re: Custom StatusService#getRepresentation() not invoked with GAE M6 build

2010-01-11 Thread Sam Bloomquist
Yep, putting it in my Application class' constructor fixed it for me. Thanks. Hello Sam, Can you set the statusService at instantiation time? Best regards, Thierry Boileau Please ignore the weird comments and code in the getRepresentation method body. My brain was going a couple

How to get HttpServletResponse object in restlet

2010-01-10 Thread Sam Bloomquist
I'm using Restlet with GAE, and the GAE Blobstore API requires a HttpServletRequest object for uploading blobs and a HttpServletResponse object for serving them. I found the static ServletCall#getRequest(Request) method to get the HttpServletRequest object from a restlet Request object, but is

RE: Custom StatusService#getRepresentation() not invoked with GAE M6 build

2010-01-10 Thread Sam Bloomquist
Please ignore the weird comments and code in the getRepresentation method body. My brain was going a couple different directions at the time I posted originally, and I realize it doesn't make much sense now. My issue is just that the method is never called. Thanks, Sam

Custom StatusService#getRepresentation() not invoked with GAE M6 build

2010-01-09 Thread Sam Bloomquist
I have a custom StatusService class, and the overridden getRepresentation(Status, Request, Response) method is never getting invoked when exceptions are thrown. I tried overriding getStatus(Throwable,Request,Response) temporarily as a test, and it is called and receives a valid Throwable.

ChallengeAuthenticator not working in GAE M6

2009-12-23 Thread Sam Bloomquist
I can't seem to get ChallengeAuthenticators to work in Restlet GAE m6 when I have both public and protected resources. I've created a custom class, MyAuthenticator, that extends ChallengAuthenticator. Right now it simply overrides the authenticate(request, response) method and returns true.