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
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder used to createFileOptions.static enumHow to load files added to the file handler. -
Field Summary
FieldsModifier and TypeFieldDescriptionlongHow long to cache files for.The context that files should be served at relative to the file handler's context.The file loading option.booleanWhen true, also include all subdirectories when adding directories. -
Constructor Summary
Constructors -
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