java.lang.Object
dev.katsute.simplehttpserver.handler.file.FileOptions.Builder
- Enclosing class:
FileOptions
Builder used to create
FileOptions.- Since:
- 5.0.0
- Version:
- 5.0.0
- Author:
- Katsute
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal FileOptionsbuild()Returns the builder as file options.final FileOptions.BuildersetCache(long cache) Sets the cache time.final FileOptions.BuildersetContext(String context) Sets the context.final FileOptions.BuilderSets the loading option.final FileOptions.BuildersetWalk(boolean walk) Sets the directory walk option.toString()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setContext
Sets the context.- Parameters:
context- context- Returns:
- builder
- Since:
- 5.0.0
- See Also:
-
setLoadingOption
Sets the loading option.- Parameters:
option- loading option- Returns:
- builder
- Since:
- 5.0.0
- See Also:
-
setCache
Sets the cache time.- Parameters:
cache- cache time- Returns:
- builder
- Since:
- 5.0.0
- See Also:
-
setWalk
Sets the directory walk option.- Parameters:
walk- walk- Returns:
- builder
- Since:
- 5.0.0
- See Also:
-
build
Returns the builder as file options.- Returns:
- file options
- Since:
- 5.0.0
- See Also:
-
toString
-