Package cool.scx.web._hack
Class SendFileHelper
java.lang.Object
cool.scx.web._hack.StaticHandlerImpl
cool.scx.web._hack.SendFileHelper
- All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>,io.vertx.ext.web.handler.StaticHandler
-
Field Summary
FieldsFields inherited from interface io.vertx.ext.web.handler.StaticHandler
DEFAULT_ALWAYS_ASYNC_FS, DEFAULT_CACHE_ENTRY_TIMEOUT, DEFAULT_CACHING_ENABLED, DEFAULT_DIRECTORY_LISTING, DEFAULT_DIRECTORY_TEMPLATE, DEFAULT_ENABLE_FS_TUNING, DEFAULT_FILES_READ_ONLY, DEFAULT_INCLUDE_HIDDEN, DEFAULT_INDEX_PAGE, DEFAULT_MAX_AGE_SECONDS, DEFAULT_MAX_AVG_SERVE_TIME_NS, DEFAULT_MAX_CACHE_SIZE, DEFAULT_RANGE_SUPPORT, DEFAULT_ROOT_FILESYSTEM_ACCESS, DEFAULT_SEND_VARY_HEADER, DEFAULT_WEB_ROOT -
Method Summary
Modifier and TypeMethodDescriptionvoidsendStatic(io.vertx.ext.web.RoutingContext context, io.vertx.core.file.FileSystem fileSystem, String path, boolean index) Can be called recursive for index pagesMethods inherited from class cool.scx.web._hack.StaticHandlerImpl
handle, setAllowRootFileSystemAccess, setAlwaysAsyncFS, setCacheEntryTimeout, setCachingEnabled, setDefaultContentEncoding, setDirectoryListing, setDirectoryTemplate, setEnableFSTuning, setEnableRangeSupport, setFilesReadOnly, setHttp2PushMapping, setIncludeHidden, setIndexPage, setMaxAgeSeconds, setMaxAvgServeTimeNs, setMaxCacheSize, setSendVaryHeader, setWebRoot, skipCompressionForMediaTypes, skipCompressionForSuffixes
-
Field Details
-
SEND_FILE_HELPER
-
-
Method Details
-
getFile
- Overrides:
getFilein classStaticHandlerImpl
-
sendStatic
public void sendStatic(io.vertx.ext.web.RoutingContext context, io.vertx.core.file.FileSystem fileSystem, String path, boolean index) Description copied from class:StaticHandlerImplCan be called recursive for index pages- Overrides:
sendStaticin classStaticHandlerImpl
-