Class CorsRuleConfigurationBuilder
java.lang.Object
org.infinispan.rest.configuration.CorsRuleConfigurationBuilder
- All Implemented Interfaces:
Builder<CorsRuleConfiguration>
- Since:
- 10.0
-
Method Summary
Modifier and TypeMethodDescriptionallowCredentials
(boolean allow) allowHeaders
(String[] values) allowMethods
(String[] values) allowOrigins
(String[] values) create()
Create the configuration beanexposeHeaders
(String[] values) maxAge
(long value) read
(CorsRuleConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.
-
Method Details
-
attributes
- Specified by:
attributes
in interfaceBuilder<CorsRuleConfiguration>
-
name
-
allowCredentials
-
maxAge
-
allowOrigins
-
allowMethods
-
allowHeaders
-
exposeHeaders
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<CorsRuleConfiguration>
- Returns:
-
read
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<CorsRuleConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.combine
- the way attributes and children of this instance and the template should be combined.
-