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