Class OAuth2Representation


  • public class OAuth2Representation
    extends Object
    Handles processing user consent and error pages to Restlet representations.
    Since:
    12.0.0
    • Constructor Detail

      • OAuth2Representation

        @Inject
        public OAuth2Representation​(OAuth2RequestFactory requestFactory)
    • Method Detail

      • getRepresentation

        public org.restlet.representation.Representation getRepresentation​(org.restlet.Context context,
                                                                           OAuth2Request request,
                                                                           String templateName,
                                                                           Map<String,​Object> dataModel)
        Gets the appropriate representation to send to the user agent based from the specified parameters.
        Parameters:
        context - The Restlet context.
        templateName - The name of the template to display.
        dataModel - The data model to display on the page.
        Returns:
        A representation of the page to send to the user agent.