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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.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.
-
Field Details
-
log
protected org.apache.commons.logging.Log log
-
-
Constructor Details
-
RestApiRequestAuthorizationHandler
public RestApiRequestAuthorizationHandler()
-
-
Method Details
-
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
-