Class BaseGrantManagementEndpoint

    • Constructor Detail

      • BaseGrantManagementEndpoint

        public BaseGrantManagementEndpoint()
    • Method Detail

      • handle

        public javax.ws.rs.core.Response handle​(com.authlete.common.api.AuthleteApi api,
                                                javax.servlet.http.HttpServletRequest req,
                                                String grantId)
                                         throws javax.ws.rs.WebApplicationException
        Handle a grant management request.

        This method internally creates a GMRequestHandler instance and calls its handle(GMRequest) method.

        Parameters:
        api - An implementation of AuthleteApi.
        req - An HTTP request that the grant management endpoint received. Its HTTP method must be either GET or DELETE.
        grantId - The grant ID included in the API call to the grant management endpoint. The last part of the path of the URL.
        Returns:
        A response that should be returned to the client application.
        Throws:
        javax.ws.rs.WebApplicationException - An exception generated by GMRequestHandler.