com.opensymphony.xwork.interceptor
Class MethodFilterInterceptorUtil
java.lang.Object
com.opensymphony.xwork.interceptor.MethodFilterInterceptorUtil
public class MethodFilterInterceptorUtil
- extends java.lang.Object
Utility class contains common methods used by
com.opensymphony.xwork.interceptor.MethodFilterInterceptorterceptor
and org.apache.struts.action2.components.Form
.
- Version:
- $Date: 2006-05-15 09:42:45 +0200 (Mon, 15 May 2006) $ $Id: MethodFilterInterceptorUtil.java 1017 2006-05-15 09:42:45 +0200 (Mon, 15 May 2006) tmjee $
- Author:
- tm_jee
Method Summary |
static boolean |
applyMethod(java.util.Set excludeMethods,
java.util.Set includeMethods,
java.lang.String method)
Static method to decide if the specified method should be
apply (not filtered) depending on the set of excludeMethods and
includeMethods . |
static boolean |
applyMethod(java.lang.String excludeMethods,
java.lang.String includeMethods,
java.lang.String method)
Same as #isMethodFiltered(Set, Set, String) , except that excludeMethods
and includeMethods are supplied as comma separated string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodFilterInterceptorUtil
public MethodFilterInterceptorUtil()
applyMethod
public static boolean applyMethod(java.util.Set excludeMethods,
java.util.Set includeMethods,
java.lang.String method)
- Static method to decide if the specified
method
should be
apply (not filtered) depending on the set of excludeMethods
and
includeMethods
.
-
excludeMethods
takes precedence over includeMethods
asterict '*' could be used to indicate all methods.
- Parameters:
excludeMethods
- includeMethods
-
- Returns:
- boolean
applyMethod
public static boolean applyMethod(java.lang.String excludeMethods,
java.lang.String includeMethods,
java.lang.String method)
- Same as
#isMethodFiltered(Set, Set, String)
, except that excludeMethods
and includeMethods
are supplied as comma separated string.
- Parameters:
excludeMethods
- includeMethods
- method
-
- Returns: