Package org.forgerock.openig.filter
Class CookieFilter.Builder
java.lang.Object
org.forgerock.openig.filter.CookieFilter.Builder
- Enclosing class:
- CookieFilter
Builder class capable of building a
CookieFilter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build aCookieFilterwith the supplied configuration.defaultAction(CookieFilter.Action defaultAction) Set the default action to perform for cookies that do not match anCookieFilter.Actionset.Set theCookieFilter.Actionset for cookies to be managed.policy(CookiePolicy policy) Set the policy for managed cookies.Set theCookieFilter.Actionset for cookies to be relayed.suppressed(Set<String> suppressed) Set theCookieFilter.Actionset for cookies to be suppressed.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultAction
Set the default action to perform for cookies that do not match anCookieFilter.Actionset. If unset, the default isCookieFilter.Action.MANAGE.- Parameters:
defaultAction- the default action- Returns:
- this builder
-
policy
Set the policy for managed cookies. Default is toaccept allcookies.- Parameters:
policy- the policy for managed cookies.- Returns:
- this builder
-
suppressed
Set theCookieFilter.Actionset for cookies to be suppressed.- Parameters:
suppressed- cookies to be suppressed- Returns:
- this builder
-
relayed
Set theCookieFilter.Actionset for cookies to be relayed.- Parameters:
relayed- cookies to be relayed- Returns:
- this builder
-
managed
Set theCookieFilter.Actionset for cookies to be managed.- Parameters:
managed- cookies to be managed- Returns:
- this builder
-
build
Build aCookieFilterwith the supplied configuration.- Returns:
- a new
CookieFilter
-