public class StaticResource<R extends IRequestContext<?>> extends Object implements IStaticResource<R>
| Constructor and Description |
|---|
StaticResource(StaticResourceType staticResourceType,
String urlPath,
String resourcePath,
IHandler<R> generator,
IStaticResourceCorsConfig corsConfig) |
| Modifier and Type | Method and Description |
|---|---|
IStaticResourceCorsConfig |
getCorsConfig() |
IHandler<R> |
getGenerator() |
String |
getResourcePath() |
StaticResourceType |
getStaticResourceType() |
String |
getUrlPath() |
boolean |
isCanBeGenerated() |
boolean |
isClasspath() |
boolean |
isDirResource() |
boolean |
isFileResource() |
boolean |
isFileSytem() |
public StaticResource(StaticResourceType staticResourceType, String urlPath, String resourcePath, @Nullable IHandler<R> generator, @Nullable IStaticResourceCorsConfig corsConfig)
public StaticResourceType getStaticResourceType()
getStaticResourceType in interface IStaticResource<R extends IRequestContext<?>>public String getUrlPath()
getUrlPath in interface IStaticResource<R extends IRequestContext<?>>public String getResourcePath()
getResourcePath in interface IStaticResource<R extends IRequestContext<?>>public boolean isCanBeGenerated()
isCanBeGenerated in interface IStaticResource<R extends IRequestContext<?>>public IHandler<R> getGenerator()
getGenerator in interface IStaticResource<R extends IRequestContext<?>>public IStaticResourceCorsConfig getCorsConfig()
getCorsConfig in interface IStaticResource<R extends IRequestContext<?>>public boolean isFileResource()
isFileResource in interface IStaticResource<R extends IRequestContext<?>>public boolean isDirResource()
isDirResource in interface IStaticResource<R extends IRequestContext<?>>public boolean isClasspath()
isClasspath in interface IStaticResource<R extends IRequestContext<?>>public boolean isFileSytem()
isFileSytem in interface IStaticResource<R extends IRequestContext<?>>Copyright © 2016. All rights reserved.