| Package | Description |
|---|---|
| com.linecorp.armeria.server |
Server core.
|
| com.linecorp.armeria.server.composition |
Service composition.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends Service<?,?>> |
Routers.ofCompositeService(List<CompositeServiceEntry<T>> entries)
Returns the default implementation of the
Router to find a CompositeServiceEntry. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Service<?,?>> |
CompositeServiceEntry.of(Route route,
T service)
|
static <T extends Service<?,?>> |
CompositeServiceEntry.of(String pathPattern,
T service)
Creates a new
CompositeServiceEntry whose Service is bound at the specified
path pattern. |
static <T extends Service<?,?>> |
CompositeServiceEntry.ofCatchAll(T service)
|
static <T extends Service<?,?>> |
CompositeServiceEntry.ofExact(String exactPath,
T service)
Creates a new
CompositeServiceEntry whose Service is bound at the specified
exact path. |
static <T extends Service<?,?>> |
CompositeServiceEntry.ofGlob(String glob,
T service)
Creates a new
CompositeServiceEntry whose Service is bound at the path that matches
the specified glob pattern. |
static <T extends Service<?,?>> |
CompositeServiceEntry.ofPrefix(String pathPrefix,
T service)
Creates a new
CompositeServiceEntry whose Service is bound under the specified
directory. |
static <T extends Service<?,?>> |
CompositeServiceEntry.ofRegex(Pattern regex,
T service)
Creates a new
CompositeServiceEntry whose Service is bound at the path that matches
the specified regular expression. |
| Modifier and Type | Method and Description |
|---|---|
List<CompositeServiceEntry<HttpService>> |
SimpleCompositeService.services() |
List<CompositeServiceEntry<RpcService>> |
SimpleCompositeRpcService.services() |
protected List<CompositeServiceEntry<T>> |
AbstractCompositeServiceBuilder.services()
Returns the list of the
CompositeServiceEntrys added via AbstractCompositeServiceBuilder.service(String, Service),
AbstractCompositeServiceBuilder.serviceUnder(String, Service), AbstractCompositeServiceBuilder.service(Route, Service) and
AbstractCompositeServiceBuilder.service(CompositeServiceEntry). |
protected List<CompositeServiceEntry<T>> |
AbstractCompositeService.services()
Returns the list of
CompositeServiceEntrys added to this composite Service. |
| Modifier and Type | Method and Description |
|---|---|
static SimpleCompositeService |
SimpleCompositeService.of(CompositeServiceEntry<HttpService>... services)
Returns a new
SimpleCompositeService that is composed of the specified entries. |
static SimpleCompositeRpcService |
SimpleCompositeRpcService.of(CompositeServiceEntry<RpcService>... services)
Returns a new
SimpleCompositeRpcService that is composed of the specified entries. |
protected AbstractCompositeServiceBuilder<T> |
AbstractCompositeServiceBuilder.service(CompositeServiceEntry<T> entry)
Binds the specified
CompositeServiceEntry. |
| Modifier and Type | Method and Description |
|---|---|
static SimpleCompositeService |
SimpleCompositeService.of(Iterable<CompositeServiceEntry<HttpService>> services)
Returns a new
SimpleCompositeService that is composed of the specified entries. |
static SimpleCompositeRpcService |
SimpleCompositeRpcService.of(Iterable<CompositeServiceEntry<RpcService>> services)
Returns a new
SimpleCompositeRpcService that is composed of the specified entries. |
| Constructor and Description |
|---|
AbstractCompositeService(CompositeServiceEntry<T>... services)
Creates a new instance with the specified
CompositeServiceEntrys. |
SimpleCompositeRpcService(CompositeServiceEntry<RpcService>... services)
Deprecated.
|
SimpleCompositeService(CompositeServiceEntry<HttpService>... services)
Deprecated.
|
| Constructor and Description |
|---|
AbstractCompositeService(Iterable<CompositeServiceEntry<T>> services)
Creates a new instance with the specified
CompositeServiceEntrys. |
SimpleCompositeRpcService(Iterable<CompositeServiceEntry<RpcService>> services)
Deprecated.
|
SimpleCompositeService(Iterable<CompositeServiceEntry<HttpService>> services)
Deprecated.
|
Copyright © 2020 LeanCloud. All rights reserved.