Class InterceptorStackConfig.Builder
java.lang.Object
org.apache.struts2.config.entities.InterceptorStackConfig.Builder
- All Implemented Interfaces:
InterceptorListHolder
- Enclosing class:
- InterceptorStackConfig
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 TypeMethodDescriptionaddInterceptor(InterceptorMapping interceptor) Add anInterceptorMappingobject.addInterceptors(List<InterceptorMapping> interceptors) Add a List ofInterceptorMappingobjects.build()protected void
-
Field Details
-
target
-
-
Constructor Details
-
Builder
-
-
Method Details
-
name
-
addInterceptor
Add anInterceptorMappingobject.- Specified by:
addInterceptorin interfaceInterceptorListHolder- Parameters:
interceptor- interceptor mapping- Returns:
- this builder
-
addInterceptors
Add a List ofInterceptorMappingobjects.- Specified by:
addInterceptorsin interfaceInterceptorListHolder- Parameters:
interceptors- list of interceptor mappings- Returns:
- this builder
-
location
-
build
-
embalmTarget
protected void embalmTarget()
-