org.apache.shiro.web.filter.mgt
Enum DefaultFilter
java.lang.Object
java.lang.Enum<DefaultFilter>
org.apache.shiro.web.filter.mgt.DefaultFilter
- All Implemented Interfaces:
- Serializable, Comparable<DefaultFilter>
public enum DefaultFilter
- extends Enum<DefaultFilter>
Enum representing all of the default Shiro Filter instances available to web applications. Each filter instance is
typically accessible in configuration the name
of the enum constant.
- Since:
- 1.0
anon
public static final DefaultFilter anon
authc
public static final DefaultFilter authc
authcBasic
public static final DefaultFilter authcBasic
logout
public static final DefaultFilter logout
noSessionCreation
public static final DefaultFilter noSessionCreation
perms
public static final DefaultFilter perms
port
public static final DefaultFilter port
rest
public static final DefaultFilter rest
roles
public static final DefaultFilter roles
ssl
public static final DefaultFilter ssl
user
public static final DefaultFilter user
values
public static DefaultFilter[] 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 (DefaultFilter c : DefaultFilter.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DefaultFilter 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 name
NullPointerException
- if the argument is null
newInstance
public Filter newInstance()
getFilterClass
public Class<? extends Filter> getFilterClass()
createInstanceMap
public static Map<String,Filter> createInstanceMap(FilterConfig config)
Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.