Class CorsRuleConfigurationBuilder
- java.lang.Object
-
- org.infinispan.rest.configuration.CorsRuleConfigurationBuilder
-
- All Implemented Interfaces:
Builder<CorsRuleConfiguration>
public class CorsRuleConfigurationBuilder extends Object implements Builder<CorsRuleConfiguration>
- Since:
- 10.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CorsRuleConfigurationBuilder
allowCredentials(boolean allow)
CorsRuleConfigurationBuilder
allowHeaders(String[] values)
CorsRuleConfigurationBuilder
allowMethods(String[] values)
CorsRuleConfigurationBuilder
allowOrigins(String[] values)
CorsRuleConfiguration
create()
Create the configuration beanboolean
equals(Object o)
CorsRuleConfigurationBuilder
exposeHeaders(String[] values)
int
hashCode()
CorsRuleConfigurationBuilder
maxAge(long value)
CorsRuleConfigurationBuilder
name(String value)
CorsRuleConfigurationBuilder
read(CorsRuleConfiguration template)
Reads the configuration from an already created configuration bean into this builder.void
validate()
Validate the data in this builder before building the configuration bean
-
-
-
Method Detail
-
name
public CorsRuleConfigurationBuilder name(String value)
-
allowCredentials
public CorsRuleConfigurationBuilder allowCredentials(boolean allow)
-
maxAge
public CorsRuleConfigurationBuilder maxAge(long value)
-
allowOrigins
public CorsRuleConfigurationBuilder allowOrigins(String[] values)
-
allowMethods
public CorsRuleConfigurationBuilder allowMethods(String[] values)
-
allowHeaders
public CorsRuleConfigurationBuilder allowHeaders(String[] values)
-
exposeHeaders
public CorsRuleConfigurationBuilder exposeHeaders(String[] values)
-
validate
public void validate()
Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<CorsRuleConfiguration>
-
create
public CorsRuleConfiguration create()
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<CorsRuleConfiguration>
- Returns:
-
read
public CorsRuleConfigurationBuilder read(CorsRuleConfiguration template)
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.
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
-