public synchronized Restlet createRoot() { Router router = new Router(getContext());
@Override protected Router initializeRouter( Router root, boolean isStarted ) { // ======== // SERVICE // service router Router applicationRouter = new Router( getContext() ); // attaching filter to a root on given URI attach( root, false, "/service/" + AbstractNexusPlexusResource.NEXUS_INSTANCE_LOCAL, applicationRouter ); // return the swapped router return applicationRouter; }
public synchronized Restlet createRoot() { Router router = new Router(getContext());
Router router = new Router(); router.attach(BrowserAuthenticationResource.URI_PATTERN, BrowserAuthenticationResource.class);