public static final class LogoutLink.Builder extends Object
LogoutLink.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
LogoutLink.Builder |
addAllWhitelist(Iterable<String> elements)
Adds elements to
whitelist list. |
LogoutLink |
build()
Builds a new
LogoutLink. |
LogoutLink.Builder |
disableRedirectParameter(Boolean disableRedirectParameter)
Initializes the value for the
disableRedirectParameter attribute. |
LogoutLink.Builder |
from(LogoutLink instance)
Fill a builder with attribute values from the provided
LogoutLink instance. |
LogoutLink.Builder |
redirectParameterName(String redirectParameterName)
Initializes the value for the
redirectParameterName attribute. |
LogoutLink.Builder |
redirectUrl(String redirectUrl)
Initializes the value for the
redirectUrl attribute. |
LogoutLink.Builder |
whitelist(Iterable<String> elements)
Sets or replaces all elements for
whitelist list. |
LogoutLink.Builder |
whitelist(String... elements)
Adds elements to
whitelist list. |
LogoutLink.Builder |
whitelist(String element)
Adds one element to
whitelist list. |
public final LogoutLink.Builder from(LogoutLink instance)
LogoutLink instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final LogoutLink.Builder disableRedirectParameter(Boolean disableRedirectParameter)
disableRedirectParameter attribute.disableRedirectParameter - The value for disableRedirectParameter (can be null)this builder for use in a chained invocationpublic final LogoutLink.Builder redirectParameterName(String redirectParameterName)
redirectParameterName attribute.redirectParameterName - The value for redirectParameterName (can be null)this builder for use in a chained invocationpublic final LogoutLink.Builder redirectUrl(String redirectUrl)
redirectUrl attribute.redirectUrl - The value for redirectUrl (can be null)this builder for use in a chained invocationpublic final LogoutLink.Builder whitelist(String element)
whitelist list.element - A whitelist elementthis builder for use in a chained invocationpublic final LogoutLink.Builder whitelist(String... elements)
whitelist list.elements - An array of whitelist elementsthis builder for use in a chained invocationpublic final LogoutLink.Builder whitelist(Iterable<String> elements)
whitelist list.elements - An iterable of whitelist elementsthis builder for use in a chained invocationpublic final LogoutLink.Builder addAllWhitelist(Iterable<String> elements)
whitelist list.elements - An iterable of whitelist elementsthis builder for use in a chained invocationpublic LogoutLink build()
LogoutLink.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.