java.lang.Object
dev.katsute.simplehttpserver.handler.file.FileOptions
Represents a set of options for an added file.
- Since:
- 5.0.0
- Version:
- 5.0.0
- Author:
- Katsute
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder used to createFileOptions
.static enum
How to load files added to the file handler. -
Field Summary
Modifier and TypeFieldDescriptionlong
How long to cache files for.The context that files should be served at relative to the file handler's context.The file loading option.boolean
When true, also include all subdirectories when adding directories. -
Constructor Summary
-
Method Summary
-
Field Details
-
context
The context that files should be served at relative to the file handler's context.- Since:
- 5.0.0
-
loading
The file loading option.- Since:
- 5.0.0
- See Also:
-
cache
public long cacheHow long to cache files for. Only used withFileOptions.FileLoadingOption.CACHE
.- Since:
- 5.0.0
- See Also:
-
walk
public boolean walkWhen true, also include all subdirectories when adding directories.- Since:
- 5.0.0
-
-
Constructor Details
-
FileOptions
public FileOptions()Creates a new set of file options.- Since:
- 5.0.0
-
-
Method Details