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
-
Method Summary
Modifier and TypeMethodDescriptionfinal FileOptions
build()
Returns the builder as file options.final FileOptions.Builder
setCache
(long cache) Sets the cache time.final FileOptions.Builder
setContext
(String context) Sets the context.final FileOptions.Builder
Sets the loading option.final FileOptions.Builder
setWalk
(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
-