com.opensymphony.xwork2.config.entities
public class: InterceptorConfig [javadoc |
source]
java.lang.Object
com.opensymphony.xwork2.util.location.Located
com.opensymphony.xwork2.config.entities.InterceptorConfig
All Implemented Interfaces:
Serializable, Locatable
Configuration for Interceptors.
In the xml configuration file this is defined as the
interceptors tag.
| Nested Class Summary: |
|---|
| public static final class | InterceptorConfig.Builder | The builder for this object. An instance of this object is the only way to construct a new instance. The
purpose is to enforce the immutability of the object. The methods are structured in a way to support chaining.
After setting any values you need, call the {@link #build()} method to create the object. |
| Field Summary |
|---|
| Map<String, String> | params | |
| String | className | |
| String | name | |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from com.opensymphony.xwork2.config.entities.InterceptorConfig Detail: |
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof InterceptorConfig)) {
return false;
}
final InterceptorConfig interceptorConfig = (InterceptorConfig) o;
if ((className != null) ? (!className.equals(interceptorConfig.className)) : (interceptorConfig.className != null))
{
return false;
}
if ((name != null) ? (!name.equals(interceptorConfig.name)) : (interceptorConfig.name != null)) {
return false;
}
if ((params != null) ? (!params.equals(interceptorConfig.params)) : (interceptorConfig.params != null)) {
return false;
}
return true;
}
|
public String getClassName() {
return className;
}
|
public String getName() {
return name;
}
|
public Map<String, String> getParams() {
return params;
}
|
public int hashCode() {
int result;
result = ((name != null) ? name.hashCode() : 0);
result = (29 * result) + ((className != null) ? className.hashCode() : 0);
result = (29 * result) + ((params != null) ? params.hashCode() : 0);
return result;
}
|