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 ofAuthleteApiinterface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.authlete.jakarta.AuthleteApiCallergetApiCaller()jakarta.ws.rs.core.Responsehandle(com.authlete.common.dto.GMRequest request)Handle a grant management request.jakarta.ws.rs.core.Responsehandle(com.authlete.common.dto.GMRequest request, com.authlete.common.api.Options options)Handle a grant management request.protected jakarta.ws.rs.InternalServerErrorExceptionunexpected(String message, Throwable cause)
-
-
-
Method Detail
-
handle
public jakarta.ws.rs.core.Response handle(com.authlete.common.dto.GMRequest request) throws jakarta.ws.rs.WebApplicationExceptionHandle 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.WebApplicationExceptionHandle a grant management request.- Parameters:
request- A grant management request.options- The request options for the/api/gmAPI.- 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()
-
-