Class ActionConfig.Builder
java.lang.Object
org.apache.struts2.config.entities.ActionConfig.Builder
- All Implemented Interfaces:
InterceptorListHolder
- Enclosing class:
- ActionConfig
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
build() method to create the object.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllowedMethod(String methodName) addAllowedMethod(Collection<String> methods) addExceptionMapping(ExceptionMappingConfig exceptionMapping) addExceptionMappings(Collection<? extends ExceptionMappingConfig> mappings) addInterceptor(InterceptorMapping interceptor) addInterceptors(List<InterceptorMapping> interceptors) addResultConfig(ResultConfig resultConfig) addResultConfigs(Collection<ResultConfig> configs) addResultConfigs(Map<String, ResultConfig> configs) build()defaultClassName(String name) exceptionMappings(Collection<? extends ExceptionMappingConfig> mappings) interceptors(List<InterceptorMapping> interceptors) methodName(String method) packageName(String name) setDefaultMethodRegex(String methodRegex) setStrictMethodInvocation(boolean strictMethodInvocation)
-
Field Details
-
target
-
allowedMethods
-
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
packageName
-
name
-
className
-
defaultClassName
-
methodName
-
addExceptionMapping
-
addExceptionMappings
public ActionConfig.Builder addExceptionMappings(Collection<? extends ExceptionMappingConfig> mappings) -
exceptionMappings
public ActionConfig.Builder exceptionMappings(Collection<? extends ExceptionMappingConfig> mappings) -
addInterceptor
- Specified by:
addInterceptorin interfaceInterceptorListHolder
-
addInterceptors
- Specified by:
addInterceptorsin interfaceInterceptorListHolder
-
interceptors
-
addParam
-
addParams
-
addResultConfig
-
addResultConfigs
-
addResultConfigs
-
addAllowedMethod
-
addAllowedMethod
-
location
-
setStrictMethodInvocation
-
setDefaultMethodRegex
-
build
-