Hello,

I wrote a server of http://localhost:8182/CA, but from client I got same 
response when I access http://localhost:8182/CA/policy and 
http://localhost:8182/CA/policywithotherwords. The idea response is when I 
input wrong uri, eg, /CA/poliocywithotherwords, the server will response 404 
not found.

any idea?


my part code is:

public class Server{
new Component.getDefaultHost().attach("/CA", new CAResourceApplication());
}

public class CAResourceApplication extends Application {
public Restlet createRoot() {
Router router = new Router(getContext());
router.attach("/policy", PolicyResource.class);
}

thanks,

Nicho

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

Reply via email to