src/main/java/org/owasp/url/UrlContext.java
public UrlContext withContextUrl(String contextUrl) {
    if (contextUrl.equals(this.absolutizer.contextUrl)) {
      return this;
    }
    return new UrlContext(
        new Absolutizer(absolutizer.schemes, contextUrl),
        this.microsoftPathStrategy, this.urlSource);
  }
/**
   * A context like this but with the given base URL.
   *
   * @param contextUrl An absolute URL with a recognized, hierarchical scheme.
   */
A context like this but with the given base URL.
@param contextUrl An absolute URL with a recognized, hierarchical scheme.
A context like this but with the given base URL . @param contextUrl An absolute URL with a recognized hierarchical scheme .
public UrlContext withContextUrl(String contextUrl) {
    if (contextUrl.equals(this.absolutizer.contextUrl)) {
      return this;
    }
    return new UrlContext(
        new Absolutizer(absolutizer.schemes, contextUrl),
        this.microsoftPathStrategy, this.urlSource);
  }
public UrlContext withContextUrl ( String contextUrl ) { if ( contextUrl . equals ( this . absolutizer . contextUrl ) ) { return this ; } return new UrlContext ( new Absolutizer ( absolutizer . schemes , contextUrl ) , this . microsoftPathStrategy , this . urlSource ) ; }
A context like this but with the given base URL.
A context like this but with the given base URL .