Class CorsConfigurationBuilder
- java.lang.Object
-
- org.infinispan.rest.configuration.CorsConfigurationBuilder
-
- All Implemented Interfaces:
Builder<CorsConfiguration>
public class CorsConfigurationBuilder extends Object implements Builder<CorsConfiguration>
- Since:
- 10.0
-
-
Constructor Summary
Constructors Constructor Description CorsConfigurationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CorsConfigurationBuilder
add(List<io.netty.handler.codec.http.cors.CorsConfig> corsConfig)
CorsRuleConfigurationBuilder
addNewRule()
CorsConfiguration
create()
Create the configuration beanboolean
equals(Object o)
int
hashCode()
CorsConfigurationBuilder
read(CorsConfiguration 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
-
addNewRule
public CorsRuleConfigurationBuilder addNewRule()
-
add
public CorsConfigurationBuilder add(List<io.netty.handler.codec.http.cors.CorsConfig> corsConfig)
-
create
public CorsConfiguration create()
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<CorsConfiguration>
- Returns:
-
read
public CorsConfigurationBuilder read(CorsConfiguration 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<CorsConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.
-
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<CorsConfiguration>
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
-