public class StaticResourceDefault<R extends RequestContext<?>> extends Object implements StaticResource<R>
| Constructor and Description |
|---|
StaticResourceDefault(StaticResourceType staticResourceType,
String urlPath,
String resourcePath,
Handler<R> generator,
StaticResourceCorsConfig corsConfig,
StaticResourceCacheConfig cacheConfig,
boolean ignoreQueryString) |
| Modifier and Type | Method and Description |
|---|---|
StaticResourceCacheConfig |
getCacheConfig() |
StaticResourceCorsConfig |
getCorsConfig() |
Handler<R> |
getGenerator() |
String |
getResourcePath() |
StaticResourceType |
getStaticResourceType() |
String |
getUrlPath() |
boolean |
isCanBeGenerated() |
boolean |
isClasspath() |
boolean |
isDirResource() |
boolean |
isFileResource() |
boolean |
isFileSytem() |
boolean |
isIgnoreQueryString() |
String |
toString() |
public StaticResourceDefault(StaticResourceType staticResourceType, String urlPath, String resourcePath, @Nullable Handler<R> generator, @Nullable StaticResourceCorsConfig corsConfig, @Nullable StaticResourceCacheConfig cacheConfig, boolean ignoreQueryString)
public StaticResourceType getStaticResourceType()
getStaticResourceType in interface StaticResource<R extends RequestContext<?>>public String getUrlPath()
getUrlPath in interface StaticResource<R extends RequestContext<?>>public String getResourcePath()
getResourcePath in interface StaticResource<R extends RequestContext<?>>public boolean isCanBeGenerated()
isCanBeGenerated in interface StaticResource<R extends RequestContext<?>>public Handler<R> getGenerator()
getGenerator in interface StaticResource<R extends RequestContext<?>>public StaticResourceCorsConfig getCorsConfig()
getCorsConfig in interface StaticResource<R extends RequestContext<?>>public StaticResourceCacheConfig getCacheConfig()
getCacheConfig in interface StaticResource<R extends RequestContext<?>>public boolean isFileResource()
isFileResource in interface StaticResource<R extends RequestContext<?>>public boolean isDirResource()
isDirResource in interface StaticResource<R extends RequestContext<?>>public boolean isClasspath()
isClasspath in interface StaticResource<R extends RequestContext<?>>public boolean isFileSytem()
isFileSytem in interface StaticResource<R extends RequestContext<?>>public boolean isIgnoreQueryString()
isIgnoreQueryString in interface StaticResource<R extends RequestContext<?>>Copyright © 2018. All rights reserved.