Class QueryParameterCallbackUrlResolver

  • All Implemented Interfaces:
    CallbackUrlResolver

    public class QueryParameterCallbackUrlResolver
    extends Object
    implements CallbackUrlResolver
    The client name is added as a query parameter to the callback URL.
    Since:
    3.0.0
    Author:
    Jerome Leleu
    • Constructor Detail

      • QueryParameterCallbackUrlResolver

        public QueryParameterCallbackUrlResolver()
      • QueryParameterCallbackUrlResolver

        public QueryParameterCallbackUrlResolver​(Map<String,​String> customParams)
    • Method Detail

      • compute

        public String compute​(UrlResolver urlResolver,
                              String url,
                              String clientName,
                              WebContext context)
        Description copied from interface: CallbackUrlResolver
        Compute a callback URL from the provided URL resolver, URL, client name and web context.
        Specified by:
        compute in interface CallbackUrlResolver
        Parameters:
        urlResolver - the provided URL resolver
        url - the URL
        clientName - the client name
        context - the web context
        Returns:
        the computed URL
      • matches

        public boolean matches​(String clientName,
                               WebContext context)
        Description copied from interface: CallbackUrlResolver
        Whether the current context matches the client name.
        Specified by:
        matches in interface CallbackUrlResolver
        Parameters:
        clientName - the client name
        context - the web context
        Returns:
        whether the current context matches the client name
      • getClientNameParameter

        public String getClientNameParameter()
      • setClientNameParameter

        public void setClientNameParameter​(String clientNameParameter)