src/main/java/org/owasp/url/FragmentClassifierBuilder.java
public FragmentClassifier build() {
    Predicate<? super Optional<String>> fragmentClassifier = this.fragmentPred;
    UrlClassifier asRelativeUrlClassifier = this.asRelativeUrlPred;
    if (fragmentClassifier == null) {
      fragmentClassifier = Predicates.alwaysFalse();
    }
    if (asRelativeUrlClassifier == null) {
      asRelativeUrlClassifier = MATCH_NO_URLS;
    }
    return new FragmentClassifierImpl(fragmentClassifier, asRelativeUrlClassifier);
  }
/**
   * Builds a classifier based on previous allow/match decisions.
   * This may be reused after a call to build and subsequent calls to
   * allow/match methods will not affect previously built classifiers.
   */
Builds a classifier based on previous allow/match decisions.
This may be reused after a call to build and subsequent calls to
allow/match methods will not affect previously built classifiers.
Builds a classifier based on previous allow / match decisions . This may be reused after a call to build and subsequent calls to allow / match methods will not affect previously built classifiers .
public FragmentClassifier build() {
    Predicate<? super Optional<String>> fragmentClassifier = this.fragmentPred;
    UrlClassifier asRelativeUrlClassifier = this.asRelativeUrlPred;
    if (fragmentClassifier == null) {
      fragmentClassifier = Predicates.alwaysFalse();
    }
    if (asRelativeUrlClassifier == null) {
      asRelativeUrlClassifier = MATCH_NO_URLS;
    }
    return new FragmentClassifierImpl(fragmentClassifier, asRelativeUrlClassifier);
  }
public FragmentClassifier build ( ) { Predicate < ? super Optional < String > > fragmentClassifier = this . fragmentPred ; UrlClassifier asRelativeUrlClassifier = this . asRelativeUrlPred ; if ( fragmentClassifier == null ) { fragmentClassifier = Predicates . alwaysFalse ( ) ; } if ( asRelativeUrlClassifier == null ) { asRelativeUrlClassifier = MATCH_NO_URLS ; } return new FragmentClassifierImpl ( fragmentClassifier , asRelativeUrlClassifier ) ; }
Builds a classifier based on previous allow/match decisions.
Builds a classifier based on previous allow / match decisions .