- @ApiOperation(value = "Gets the named policy for AC xApp via the A1 Mediator")
- @RequestMapping(value = "policy/{" + POLICY_NAME + "}", method = RequestMethod.GET)
- public Object getPolicy(@PathVariable(POLICY_NAME) String policyName) {
- logger.debug("getPolicy: policy {}", policyName);
- a1MediatorApi.a1ControllerGetHandler(policyName);
+ /*
+ * GET policy is not supported at present by A1 Mediator! Always returns 501.
+ */
+ @ApiOperation(value = "Gets the admission control policy for AC xApp via the A1 Mediator")
+ @RequestMapping(value = "admctrl", method = RequestMethod.GET)
+ public Object getAdmissionControlPolicy(HttpServletResponse response) {
+ logger.debug("getAdmissionControlPolicy");
+ response.setStatus(HttpServletResponse.SC_NOT_IMPLEMENTED);