Class RestApiRequestAuthorizationHandler
- java.lang.Object
-
- org.wso2.carbon.registry.rest.api.handler.RestApiRequestAuthorizationHandler
-
- All Implemented Interfaces:
org.apache.cxf.jaxrs.ext.RequestHandler
public class RestApiRequestAuthorizationHandler extends Object implements org.apache.cxf.jaxrs.ext.RequestHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.logging.Loglog
-
Constructor Summary
Constructors Constructor Description RestApiRequestAuthorizationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsehandleRequest(org.apache.cxf.message.Message message, org.apache.cxf.jaxrs.model.ClassResourceInfo resourceInfo)This method handles the request received at the registry endpoint.
-
-
-
Method Detail
-
handleRequest
public javax.ws.rs.core.Response handleRequest(org.apache.cxf.message.Message message, org.apache.cxf.jaxrs.model.ClassResourceInfo resourceInfo)This method handles the request received at the registry endpoint. The method decodes the extracted JWT token and extract the enduser's username and tenantID which is appended to the original rest request as query param and forwarded to the respective resource class. This method returns a null value which indicates that the request to be processed.- Specified by:
handleRequestin interfaceorg.apache.cxf.jaxrs.ext.RequestHandler
-
-