org.apache.shiro.web.filter.mgt
Enum DefaultFilter

java.lang.Object
  extended by java.lang.Enum<DefaultFilter>
      extended by 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

Enum Constant Summary
anon
           
authc
           
authcBasic
           
logout
           
noSessionCreation
           
perms
           
port
           
rest
           
roles
           
ssl
           
user
           
 
Method Summary
static Map<String,Filter> createInstanceMap(FilterConfig config)
           
 Class<? extends Filter> getFilterClass()
           
 Filter newInstance()
           
static DefaultFilter valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DefaultFilter[] 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

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
Method Detail

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-2016 The Apache Software Foundation. All Rights Reserved.