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 anInterceptorMapping
object.addInterceptors
(List<InterceptorMapping> interceptors) Add a List ofInterceptorMapping
objects.build()
protected void
-
Field Details
-
target
-
-
Constructor Details
-
Builder
-
-
Method Details
-
name
-
addInterceptor
Add anInterceptorMapping
object.- Specified by:
addInterceptor
in interfaceInterceptorListHolder
- Parameters:
interceptor
- interceptor mapping- Returns:
- this builder
-
addInterceptors
Add a List ofInterceptorMapping
objects.- Specified by:
addInterceptors
in interfaceInterceptorListHolder
- Parameters:
interceptors
- list of interceptor mappings- Returns:
- this builder
-
location
-
build
-
embalmTarget
protected void embalmTarget()
-