|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<WebResourceType>
org.loom.resources.WebResourceType
public enum WebResourceType
Type of web resource. If used for a concatenated list of resources, it contains the type of the first identified resource
Enum Constant Summary | |
---|---|
CSS
css file @see ContentTypeNames |
|
JS
javascript file @see ContentTypeNames |
|
UNKNOWN
unknown file extension |
Method Summary | |
---|---|
java.lang.String |
getContentType()
|
java.lang.String |
getExtension()
|
static WebResourceType |
identify(org.springframework.core.io.Resource resource)
|
static WebResourceType |
identify(java.lang.String location)
|
static WebResourceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static WebResourceType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final WebResourceType JS
ContentTypeNames
public static final WebResourceType CSS
ContentTypeNames
public static final WebResourceType UNKNOWN
Method Detail |
---|
public static WebResourceType[] values()
for (WebResourceType c : WebResourceType.values()) System.out.println(c);
public static WebResourceType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static WebResourceType identify(org.springframework.core.io.Resource resource)
public static final WebResourceType identify(java.lang.String location)
public java.lang.String getContentType()
public java.lang.String getExtension()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |