Class AbstractFileLocationStrategy.AbstractBuilder<T extends FileLocationStrategy,​B extends AbstractFileLocationStrategy.AbstractBuilder<T,​B>>

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractBuilder()
      Constructs a new instance for subclasses.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      B setHosts​(java.util.Set<java.util.regex.Pattern> hosts)
      Sets enabled URL-based hosts, empty means all are enabled.
      B setHostsRegEx​(java.util.Set<java.lang.String> hosts)
      Sets enabled URL-based hosts, empty means all are enabled.
      B setSchemes​(java.util.Set<java.lang.String> schemes)
      Sets enabled URL-based schemes, empty means all are enabled.
      • Methods inherited from class org.apache.commons.io.build.AbstractSupplier

        asThis
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.commons.io.function.IOSupplier

        asSupplier, get, getUnchecked
    • Constructor Detail

      • AbstractBuilder

        public AbstractBuilder()
        Constructs a new instance for subclasses.
    • Method Detail

      • setHosts

        public B setHosts​(java.util.Set<java.util.regex.Pattern> hosts)
        Sets enabled URL-based hosts, empty means all are enabled. URL hosts are case-insensitive.
        Parameters:
        hosts - enabled URL-based hosts.
        Returns:
        this instance.
      • setHostsRegEx

        public B setHostsRegEx​(java.util.Set<java.lang.String> hosts)
        Sets enabled URL-based hosts, empty means all are enabled. URL hosts are case-insensitive.
        Parameters:
        hosts - Regular expressions enabled URL-based hosts.
        Returns:
        this instance.
      • setSchemes

        public B setSchemes​(java.util.Set<java.lang.String> schemes)
        Sets enabled URL-based schemes, empty means all are enabled. URL schemes are case-insensitive.
        Parameters:
        schemes - enabled URL-based schemes, the default null means all schemes are allowed.
        Returns:
        this instance.