-
Interfaces Interface Description com.linecorp.armeria.spring.MeterIdPrefixFunctionFactory
-
Classes Class Description com.linecorp.armeria.common.metric.MoreNamingConventions Use Micrometer's defaultNamingConvention
.com.linecorp.armeria.common.unsafe.ByteBufHttpData UsePooledHttpData
.com.linecorp.armeria.server.composition.AbstractCompositeService This class will be removed without replacement.com.linecorp.armeria.server.composition.AbstractCompositeServiceBuilder This class will be removed without a replacement.com.linecorp.armeria.server.composition.CompositeServiceEntry This class will be removed without a replacement.com.linecorp.armeria.server.composition.SimpleCompositeRpcService This class will be removed without a replacement.com.linecorp.armeria.server.composition.SimpleCompositeRpcServiceBuilder This class will be removed without a replacement.com.linecorp.armeria.server.composition.SimpleCompositeService This class will be removed without a replacement.com.linecorp.armeria.server.composition.SimpleCompositeServiceBuilder This class will be removed without a replacement.com.linecorp.armeria.spring.AbstractServiceRegistrationBean com.linecorp.armeria.spring.AnnotatedExampleRequest com.linecorp.armeria.spring.AnnotatedServiceRegistrationBean UseServerBuilder.annotatedService()
viaArmeriaServerConfigurator
andDocServiceConfigurator
.> @Bean > public ArmeriaServerConfigurator myService() { > return server -> { > server.annotatedService() > .pathPrefix("/my_service") > .exceptionHandlers(new MyExceptionHandler()) > .requestConverters(new MyRequestConverter()) > .responseConverters(new MyResponseConverter()) > .decorator(LoggingService.newDecorator()) > .build(new MyAnnotatedService()); > }; > } > @Bean > public DocServiceConfigurator myServiceDoc() { > return docServiceBuilder -> { > docServiceBuilder.exampleRequestForMethod(MyAnnotatedService.class, > "myMethod", "{\"foo\":\"bar\"}") > .exampleHttpHeaders(MyAnnotatedService.class, > HttpHeaders.of("my-header", "headerVal")); > }; > }
com.linecorp.armeria.spring.ExampleHeaders com.linecorp.armeria.spring.GrpcExampleHeaders com.linecorp.armeria.spring.GrpcExampleRequest com.linecorp.armeria.spring.GrpcServiceRegistrationBean UseArmeriaServerConfigurator
andDocServiceConfigurator
.> @Bean > public ArmeriaServerConfigurator myService() { > return server -> { > server.route() > .path("/my-service") > .decorator(LoggingService.newDecorator()) > .build(GrpcService.builder() > .addService(new HelloService()) > .supportedSerializationFormats( > GrpcSerializationFormats.values()) > .enableUnframedRequests(true) > .build()); > }; > } > @Bean > public DocServiceConfigurator myServiceDoc() { > return docServiceBuilder -> { > docServiceBuilder.exampleRequestForMethod(HelloServiceGrpc.SERVICE_NAME, "Hello", > HelloRequest.newBuilder() > .setName("Armeria").build()) > .exampleHttpHeaders(HelloServiceGrpc.SERVICE_NAME, > HttpHeaders.of("my-header", "headerVal")); > }; }
com.linecorp.armeria.spring.HttpServiceRegistrationBean UseArmeriaServerConfigurator
.> @Bean > public ArmeriaServerConfigurator myService() { > return server -> { > server.route() > .path("/ok") > .methods(HttpMethod.GET, HttpMethod.POST) > .defaultServiceName("myService") > .decorator(LoggingService.newDecorator()) > .build(new MyService()); > }; }
com.linecorp.armeria.spring.ThriftServiceRegistrationBean UseArmeriaServerConfigurator
andDocServiceConfigurator
.> @Bean > public ArmeriaServerConfigurator myService() { > return server -> { > server.route() > .path("/my_service") > .decorator(LoggingService.newDecorator()) > .build(THttpService.of(new MyThriftService())); > }; > } > @Bean > public DocServiceConfigurator myServiceDoc() { > return docServiceBuilder -> { > docServiceBuilder.exampleRequest(new MyThriftService.hello_args("Armeria")) > .exampleHttpHeaders( > HttpHeaders.of(AUTHORIZATION, "bearer b03c4fed1a")); > }; }