Class HomeDirectoryLocationStrategy.Builder
java.lang.Object
org.apache.commons.io.build.AbstractSupplier<HomeDirectoryLocationStrategy,HomeDirectoryLocationStrategy.Builder>
org.apache.commons.configuration2.io.AbstractFileLocationStrategy.AbstractBuilder<HomeDirectoryLocationStrategy,HomeDirectoryLocationStrategy.Builder>
org.apache.commons.configuration2.io.HomeDirectoryLocationStrategy.Builder
- All Implemented Interfaces:
org.apache.commons.io.function.IOSupplier<HomeDirectoryLocationStrategy>
- Enclosing class:
HomeDirectoryLocationStrategy
public static class HomeDirectoryLocationStrategy.Builder
extends AbstractFileLocationStrategy.AbstractBuilder<HomeDirectoryLocationStrategy,HomeDirectoryLocationStrategy.Builder>
Builds new instances of
HomeDirectoryLocationStrategy.- Since:
- 2.15.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanThe flag whether the base path is to be taken into account.private StringThe home directory to be searched for the requested file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()setEvaluateBasePath(boolean evaluateBasePath) Sets whether the base path should be evaluated.setHomeDirectory(String homeDirectory) Sets the path to the home directory (may benull).Methods inherited from class org.apache.commons.configuration2.io.AbstractFileLocationStrategy.AbstractBuilder
getHosts, getSchemes, setHosts, setHostsRegEx, setSchemesMethods inherited from class org.apache.commons.io.build.AbstractSupplier
asThisMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.io.function.IOSupplier
asSupplier, getUnchecked
-
Field Details
-
evaluateBasePath
private boolean evaluateBasePathThe flag whether the base path is to be taken into account. -
homeDirectory
The home directory to be searched for the requested file.
-
-
Constructor Details
-
Builder
public Builder()Constructs a new instance.
-
-
Method Details
-
get
- Throws:
IOException
-
setEvaluateBasePath
Sets whether the base path should be evaluated.- Parameters:
evaluateBasePath- whether the base path should be evaluated.- Returns:
thisinstance..
-
setHomeDirectory
Sets the path to the home directory (may benull).- Parameters:
homeDirectory- the path to the home directory (may benull)- Returns:
thisinstance..
-