Enum StaticResourceLocation
- java.lang.Object
- java.lang.Enum<StaticResourceLocation>
- org.springframework.boot.autoconfigure.security.StaticResourceLocation
- All Implemented Interfaces:
Serializable
,Comparable<StaticResourceLocation>
public enum StaticResourceLocation extends Enum<StaticResourceLocation>
Common locations for static resources.
Enum Constant Summary
Enum Constants Enum Constant Description CSS
Resources under"/css"
.FAVICON
The"favicon.ico"
resource.IMAGES
Resources under"/images"
.JAVA_SCRIPT
Resources under"/js"
.WEB_JARS
Resources under"/webjars"
.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<String>
getPatterns()
static StaticResourceLocation
valueOf(String name)
Returns the enum constant of this type with the specified name.static StaticResourceLocation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
CSS
public static final StaticResourceLocation CSS
Resources under"/css"
.
JAVA_SCRIPT
public static final StaticResourceLocation JAVA_SCRIPT
Resources under"/js"
.
IMAGES
public static final StaticResourceLocation IMAGES
Resources under"/images"
.
WEB_JARS
public static final StaticResourceLocation WEB_JARS
Resources under"/webjars"
.
FAVICON
public static final StaticResourceLocation FAVICON
The"favicon.ico"
resource.
Method Detail
values
public static StaticResourceLocation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StaticResourceLocation c : StaticResourceLocation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static StaticResourceLocation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
getPatterns
public Stream<String> getPatterns()