Interface CallbackUrlResolver

All Known Implementing Classes:
NoParameterCallbackUrlResolver, PathParameterCallbackUrlResolver, QueryParameterCallbackUrlResolver

public interface CallbackUrlResolver
How to compute a callback URL and match a client.
Since:
3.0.0
Author:
Jerome Leleu
  • Method Summary

    Modifier and Type
    Method
    Description
    compute(UrlResolver urlResolver, String url, String clientName, WebContext context)
    Compute a callback URL from the provided URL resolver, URL, client name and web context.
    boolean
    matches(String clientName, WebContext context)
    Whether the current context matches the client name.
  • Method Details

    • compute

      String compute(UrlResolver urlResolver, String url, String clientName, WebContext context)
      Compute a callback URL from the provided URL resolver, URL, client name and web context.
      Parameters:
      urlResolver - the provided URL resolver
      url - the URL
      clientName - the client name
      context - the web context
      Returns:
      the computed URL
    • matches

      boolean matches(String clientName, WebContext context)
      Whether the current context matches the client name.
      Parameters:
      clientName - the client name
      context - the web context
      Returns:
      whether the current context matches the client name