Package de.quantummaid.httpmaid.cors
Class CorsConfigurator
- java.lang.Object
-
- de.quantummaid.httpmaid.cors.CorsConfigurator
-
- All Implemented Interfaces:
Configurator
public final class CorsConfigurator extends Object implements Configurator
-
-
Constructor Summary
Constructors Constructor Description CorsConfigurator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CorsConfiguratorallowingAllHeaders()CorsConfiguratorallowingCredentials()voidconfigure(DependencyRegistry dependencyRegistry)static CorsConfiguratorcorsConfigurator(AllowedOrigins allowedOrigins)CorsConfiguratorexposingAllResponseHeaders()CorsConfiguratorexposingTheResponseHeaders(String... exposedHeaders)CorsConfiguratornotAllowingCredentials()List<ChainModule>supplyModulesIfNotAlreadyPreset()CorsConfiguratorwithAllowedHeaders(String... headers)CorsConfiguratorwithAllowedMethods(HttpRequestMethod... methods)CorsConfiguratorwithTimeOutAfter(int timeout, TimeUnit timeUnit)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.quantummaid.httpmaid.chains.Configurator
init
-
-
-
-
Method Detail
-
corsConfigurator
public static CorsConfigurator corsConfigurator(AllowedOrigins allowedOrigins)
-
withAllowedMethods
public CorsConfigurator withAllowedMethods(HttpRequestMethod... methods)
-
allowingAllHeaders
public CorsConfigurator allowingAllHeaders()
-
withAllowedHeaders
public CorsConfigurator withAllowedHeaders(String... headers)
-
exposingTheResponseHeaders
public CorsConfigurator exposingTheResponseHeaders(String... exposedHeaders)
-
exposingAllResponseHeaders
public CorsConfigurator exposingAllResponseHeaders()
-
allowingCredentials
public CorsConfigurator allowingCredentials()
-
notAllowingCredentials
public CorsConfigurator notAllowingCredentials()
-
withTimeOutAfter
public CorsConfigurator withTimeOutAfter(int timeout, TimeUnit timeUnit)
-
supplyModulesIfNotAlreadyPreset
public List<ChainModule> supplyModulesIfNotAlreadyPreset()
- Specified by:
supplyModulesIfNotAlreadyPresetin interfaceConfigurator
-
configure
public void configure(DependencyRegistry dependencyRegistry)
- Specified by:
configurein interfaceConfigurator
-
-