Thanks..
1. I am using a Apache Http Client library as Restlet does not support
multipart-form. As far as retrieving userid and password is concerned,
thats not
a problem because I have written custom Guard class which does exactly
the same.
When I use a challengeScheme(Restlet Client) in Request, inserting
credentials in the challengeScheme, i am able to retrieve
the login/pwd in my resource.Problem is whenever I use an apache
client library the following returns null:
request.getChallengeResponse().getIdentifier();
request.getChallengeResponse().getCredentials();
To circumvent the problem I am passing the values in Request
header and retrieving them as
org.restlet.data.Form headers = (org.restlet.data.Form)
request.getAttributes().get("org.restlet.http.headers");
ret = headers.getFirstValue(header);
I know this is a stop gap solution but it works.