Class DefaultUrlResolver

java.lang.Object
org.pac4j.core.http.url.DefaultUrlResolver
All Implemented Interfaces:
UrlResolver

public class DefaultUrlResolver extends Object implements UrlResolver
Default URL resolver: use the provided URL as is or append the server and port for relative URLs.
Since:
1.8.1
Author:
Jerome Leleu
  • Constructor Details

    • DefaultUrlResolver

      public DefaultUrlResolver()
    • DefaultUrlResolver

      public DefaultUrlResolver(boolean completeRelativeUrl)
  • Method Details

    • compute

      public String compute(String url, WebContext context)
      Description copied from interface: UrlResolver
      Compute a new URL from the provided URL and the web context.
      Specified by:
      compute in interface UrlResolver
      Parameters:
      url - the provided URL
      context - the web context
      Returns:
      the computed URL
    • isCompleteRelativeUrl

      public boolean isCompleteRelativeUrl()
    • setCompleteRelativeUrl

      public void setCompleteRelativeUrl(boolean completeRelativeUrl)