Search in sources :

Example 1 with ResourceApiVersionRestlet

use of org.forgerock.openam.rest.service.ResourceApiVersionRestlet in project OpenAM by OpenRock.

the class XacmlRouterProvider method get.

@Override
public Router get() {
    RestletRealmRouter router = new RestletRealmRouter(realmValidator, coreWrapper);
    ResourceApiVersionRestlet policiesVersionRouter = new ResourceApiVersionRestlet(versionBehaviourManager);
    policiesVersionRouter.attach(version(1), wrap(XacmlService.class));
    router.attach("/policies", policiesVersionRouter);
    invalidRealmNames.add("policies");
    return router;
}
Also used : XacmlService(org.forgerock.openam.xacml.v3.rest.XacmlService) RestletRealmRouter(org.forgerock.openam.rest.service.RestletRealmRouter) ResourceApiVersionRestlet(org.forgerock.openam.rest.service.ResourceApiVersionRestlet)

Aggregations

ResourceApiVersionRestlet (org.forgerock.openam.rest.service.ResourceApiVersionRestlet)1 RestletRealmRouter (org.forgerock.openam.rest.service.RestletRealmRouter)1 XacmlService (org.forgerock.openam.xacml.v3.rest.XacmlService)1