RE: Re: Custom Challenge Scheme

2011-06-04 Thread Paul Morris
Thanks for the input. I was able to get Restlet to recognize my helper. Not 
sure I understand the implications of setting the clientSide boolean value to 
true but anyway what I'm fighting with now is the line in my overridden 
parseResponse method for setting the raw value. Unfortunately when the program 
reached that line at runtime it just loops through these same methods 
indefinitely until it finally overflows:

at 
org.restlet.engine.adapter.HttpRequest.getChallengeResponse(HttpRequest.java:227)
at 
org.apius.identity.openam.MyAuthenticatorHelper.parseResponse(MyAuthenticatorHelper.java:48)
at 
org.restlet.engine.security.AuthenticatorUtils.parseResponse(AuthenticatorUtils.java:350)

Perhaps I'm not approaching this the right way. I simply want to 1) register my 
scheme with the engine (which you helped me do), 2) have the framework write 
the WWW-Authenticate header with the appropriate realm on 401s and 3) change 
getRawValue() so that it returns just token value and not token=token 
value. Any advice?

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2757323


RE: Re: Custom Challenge Scheme

2011-06-04 Thread Paul Morris
I feel like an idiot (lol). I just needed to change my setRawValue method line 
so that it was using the ChallengeResponse argument in the method itself and 
not the HttpRequest adapter's getChallengeResponse(). It's understandable why 
that would have created an infinite loop. Anyway thanks again for the help.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2757660


Servlet integration with Restlet 2.0

2011-06-04 Thread kshams
Hello, 
   I can't find the serverservlet class in the latest stable version of
restlet as described here:
http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/81-restlet.html


This used to be in a com.noeleos extention in the past with restlet 1.1.
Could you please point us to the extension in the latest version?

--
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Servlet-integration-with-Restlet-2-0-tp6440596p6440596.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2757741