Package com.linecorp.armeria.server.cors
Class CorsDecoratorsFactoryFunction
java.lang.Object
com.linecorp.armeria.server.cors.CorsDecoratorsFactoryFunction
- All Implemented Interfaces:
DecoratorFactoryFunction<CorsDecorators>
public final class CorsDecoratorsFactoryFunction
extends Object
implements DecoratorFactoryFunction<CorsDecorators>
A factory which creates a
CorsService
decorator when two or more CorsDecorator
s are added.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFunction<? super HttpService,
? extends HttpService> newDecorator
(CorsDecorators parameter) Creates a new decorator with the specifiedparameter
.
-
Constructor Details
-
CorsDecoratorsFactoryFunction
public CorsDecoratorsFactoryFunction()
-
-
Method Details
-
newDecorator
Description copied from interface:DecoratorFactoryFunction
Creates a new decorator with the specifiedparameter
.- Specified by:
newDecorator
in interfaceDecoratorFactoryFunction<CorsDecorators>
-