Package org.apache.struts2.interceptor
Class MethodFilterInterceptorUtil
java.lang.Object
org.apache.struts2.interceptor.MethodFilterInterceptorUtil
Utility class contains common methods used by
MethodFilterInterceptor
.- Author:
- tm_jee
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
applyMethod
(String excludeMethods, String includeMethods, String method) Same asapplyMethod(Set, Set, String)
, except thatexcludeMethods
andincludeMethods
are supplied as comma separated string.static boolean
Static method to decide if the specifiedmethod
should be apply (not filtered) depending on the set ofexcludeMethods
andincludeMethods
.
-
Constructor Details
-
MethodFilterInterceptorUtil
public MethodFilterInterceptorUtil()
-
-
Method Details
-
applyMethod
public static boolean applyMethod(Set<String> excludeMethods, Set<String> includeMethods, String method) Static method to decide if the specifiedmethod
should be apply (not filtered) depending on the set ofexcludeMethods
andincludeMethods
.-
includeMethods
takes precedence overexcludeMethods
- Parameters:
excludeMethods
- list of methods to exclude.includeMethods
- list of methods to include.method
- the specified method to check- Returns:
- true if the method should be applied.
-
-
applyMethod
Same asapplyMethod(Set, Set, String)
, except thatexcludeMethods
andincludeMethods
are supplied as comma separated string.- Parameters:
excludeMethods
- comma seperated string of methods to exclude.includeMethods
- comma seperated string of methods to include.method
- the specified method to check- Returns:
- true if the method should be applied.
-