Restlet - Status service driven by the requested resource -
Restlet - Status service driven by the requested resource -
i developing next rest inquiries restlet.
http://localhost:8182/employees/{empid} http://localhost:8182/timeline/{empid} i have application overridden createinbounroot has router attached employees/{empid} , timeline/{empid}. in application, able set 1 status service, employeestatusservice. how tell application utilize different status service depending on resource requested ?
or, there different way of doing ?
my application:
public class app1 extends application { public catalogueapplication() { this.setstatusservice(new employeestatusservice()); //this.setstatusservice(new timelinestatusservice()); } @override public restlet createinboundroot() { router router = new router(getcontext()); router.attach("/employees/{empid}", employees.class); router.attach("/timeline/{empid}", timeline.class); homecoming router; } } restlet status
Comments
Post a Comment