Package com.authlete.jaxrs
Class GMRequestHandler
- java.lang.Object
-
- com.authlete.jaxrs.GMRequestHandler
-
public class GMRequestHandler extends Object
Handler for grant management requests.This class can be used to implement the grant management endpoint.
- Since:
- 2.37
- See Also:
- Grant Management for OAuth 2.0
-
-
Constructor Summary
Constructors Constructor Description GMRequestHandler(com.authlete.common.api.AuthleteApi api)
Constructor with an implementation ofAuthleteApi
interface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.authlete.jaxrs.AuthleteApiCaller
getApiCaller()
javax.ws.rs.core.Response
handle(com.authlete.common.dto.GMRequest request)
Handle a grant management request.protected javax.ws.rs.InternalServerErrorException
unexpected(String message, Throwable cause)
-
-
-
Method Detail
-
handle
public javax.ws.rs.core.Response handle(com.authlete.common.dto.GMRequest request) throws javax.ws.rs.WebApplicationException
Handle a grant management request.- Parameters:
request
- A grant management request.- Returns:
- A response that should be returned from the grant management endpoint to the client application.
- Throws:
javax.ws.rs.WebApplicationException
-
getApiCaller
protected com.authlete.jaxrs.AuthleteApiCaller getApiCaller()
-
-