01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05:
06: package com.opensymphony.xwork.interceptor;
07:
08: /**
09: * <!-- START SNIPPET: javadoc -->
10: *
11: * This interface is implemented by actions that want to declare acceptable parameters. Works in conjunction with {@link
12: * ParametersInterceptor}. For example, actions may want to create a whitelist of parameters they will accept or a
13: * blacklist of paramters they will reject to prevent clients from setting other unexpected (and possibly dangerous)
14: * parameters.
15: *
16: * <!-- END SNIPPET: javadoc -->
17: *
18: * @author Bob Lee (crazybob@google.com)
19: */
20: public interface ParameterNameAware {
21:
22: /**
23: * Returns true if the action will accept the parameter with the given name.
24: */
25: boolean acceptableParameterName(String parameterName);
26: }
|