src/main/java/de/qaware/xff/util/uri/UriComponentsBuilder.java
/**
     * Build a {@code UriComponents} instance from the various components
     * contained in this builder.
     *
     * @param encoded whether all the components set in this builder are
     *                encoded ({@code true}) or not ({@code false})
     * @return the URI components
     */
Build a  UriComponents instance from the various components
contained in this builder.

@param encoded whether all the components set in this builder are
encoded ( true) or not ( false)
@return the URI components
Build a UriComponents instance from the various components contained in this builder . @param encoded whether all the components set in this builder are encoded ( true ) or not ( false ) @return the URI components
public UriComponents build(boolean encoded) {
        if (this.ssp != null) {
            return new OpaqueUriComponents(this.scheme, this.ssp, this.fragment);
        } else {
            return new HierarchicalUriComponents(this.scheme, this.fragment, this.userInfo,
                    this.host, this.port, this.pathBuilder.build(), this.queryParams, encoded, true);
        }
    }
public UriComponents build ( boolean encoded ) { if ( this . ssp != null ) { return new OpaqueUriComponents ( this . scheme , this . ssp , this . fragment ) ; } else { return new HierarchicalUriComponents ( this . scheme , this . fragment , this . userInfo , this . host , this . port , this . pathBuilder . build ( ) , this . queryParams , encoded , true ) ; } }
Build a {@code UriComponents} instance from the various components
 contained in this builder.
Build a { @code UriComponents } instance from the various components contained in this builder .