Package org.opendaylight.aaa.web
Class FilterDetails.Builder
java.lang.Object
org.opendaylight.aaa.web.FilterDetails.Builder
- Enclosing interface:
- FilterDetails
Builds instances of type
FilterDetails. Initialize attributes and then invoke the
build() method to create an immutable instance.
FilterDetails.Builder is not thread-safe and generally should not be stored in a field or
collection, but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescription@NonNull FilterDetails.BuilderaddUrlPattern(String urlPattern) Adds one element tourlPatternslist.@NonNull FilterDetails.BuilderasyncSupported(boolean asyncSupported) Initializes the value for theasyncSupportedattribute.@NonNull FilterDetailsbuild()Builds a newFilterDetails.@NonNull FilterDetails.Builderfilter(javax.servlet.Filter filter) Initializes the value for thefilterattribute.@NonNull FilterDetails.BuilderInitializes the value for thenameattribute.@NonNull FilterDetails.BuilderputInitParam(String key, String value) Put one entry to theinitParamsmap.
-
Method Details
-
filter
Initializes the value for thefilterattribute.- Parameters:
filter- The value for filter- Returns:
thisbuilder for use in a chained invocation
-
name
Initializes the value for thenameattribute.If not set, this attribute will have a value corresponding to
filter().getClass().getName().- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation- Throws:
NullPointerException- if {code name} isnull
-
addUrlPattern
Adds one element tourlPatternslist.- Parameters:
urlPattern- A urlPatterns element- Returns:
thisbuilder for use in a chained invocation- Throws:
NullPointerException- if {code urlPattern} isnullIllegalArgumentException- ifurlPatterndoes not meet specification criteria
-
putInitParam
Put one entry to theinitParamsmap.- Parameters:
key- The key in the initParams mapvalue- The associated value in the initParams map- Returns:
thisbuilder for use in a chained invocation- Throws:
NullPointerException- if any argument isnull
-
asyncSupported
Initializes the value for theasyncSupportedattribute.If not set, this attribute will have a default value of
false.- Parameters:
asyncSupported- The value for asyncSupported- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newFilterDetails.- Returns:
- An immutable instance of FilterDetails
- Throws:
IllegalStateException- if any required attributes are missing
-