Hi,

I would like to know how (and if it's possible of course) implement some Guard 
(whith URIs, ChallengeScheme and Realm) with Spring (and also some Resolver)

this is my application : 

@Override
public synchronized Restlet createRoot() {

        Router router = new Router(getContext());        
        router.setDefaultMatchingMode(Template.MODE_EQUALS);

router.attach(/temp, TempResource.class);

Collection<String> baseUris = new ArrayList<String>();
        baseUris.add("/temp");

CustomGuard guard = new 
CustomGuard(getContext(),ChallengeScheme.HTTP_BASIC,REALM);
guard.setDomainUris(baseUris);
guard.setServerKey(SERVER_KEY);
guard.setSecretResolver(new CustomResolver());
guard.setNext(router);
return guard;
} 

Thanks a lot
Best Regards
Tom

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

Reply via email to