Package com.authlete.jakarta
Class GMRequestHandler
- java.lang.Object
-
- com.authlete.jakarta.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.jakarta.AuthleteApiCaller
getApiCaller()
jakarta.ws.rs.core.Response
handle(com.authlete.common.dto.GMRequest request)
Handle a grant management request.jakarta.ws.rs.core.Response
handle(com.authlete.common.dto.GMRequest request, com.authlete.common.api.Options options)
Handle a grant management request.protected jakarta.ws.rs.InternalServerErrorException
unexpected(String message, Throwable cause)
-
-
-
Method Detail
-
handle
public jakarta.ws.rs.core.Response handle(com.authlete.common.dto.GMRequest request) throws jakarta.ws.rs.WebApplicationException
Handle a grant management request. This method is an alias ofhandle
(request, null)
.- Parameters:
request
- A grant management request.- Returns:
- A response that should be returned from the grant management endpoint to the client application.
- Throws:
jakarta.ws.rs.WebApplicationException
-
handle
public jakarta.ws.rs.core.Response handle(com.authlete.common.dto.GMRequest request, com.authlete.common.api.Options options) throws jakarta.ws.rs.WebApplicationException
Handle a grant management request.- Parameters:
request
- A grant management request.options
- The request options for the/api/gm
API.- Returns:
- A response that should be returned from the grant management endpoint to the client application.
- Throws:
jakarta.ws.rs.WebApplicationException
- Since:
- 2.82
-
getApiCaller
protected com.authlete.jakarta.AuthleteApiCaller getApiCaller()
-
-