| Modifier and Type | Method and Description |
|---|---|
static <T extends Service<?,?>> |
of(Route route,
T service)
|
static <T extends Service<?,?>> |
of(String pathPattern,
T service)
Creates a new
CompositeServiceEntry whose Service is bound at the specified
path pattern. |
static <T extends Service<?,?>> |
ofCatchAll(T service)
|
static <T extends Service<?,?>> |
ofExact(String exactPath,
T service)
Creates a new
CompositeServiceEntry whose Service is bound at the specified
exact path. |
static <T extends Service<?,?>> |
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<?,?>> |
ofPrefix(String pathPrefix,
T service)
Creates a new
CompositeServiceEntry whose Service is bound under the specified
directory. |
static <T extends Service<?,?>> |
ofRegex(Pattern regex,
T service)
Creates a new
CompositeServiceEntry whose Service is bound at the path that matches
the specified regular expression. |
Route |
route()
|
T |
service()
Returns the
Service. |
String |
toString() |
public static <T extends Service<?,?>> CompositeServiceEntry<T> ofRegex(Pattern regex, T service)
CompositeServiceEntry whose Service is bound at the path that matches
the specified regular expression.RouteBuilder.regex(Pattern)public static <T extends Service<?,?>> CompositeServiceEntry<T> ofGlob(String glob, T service)
CompositeServiceEntry whose Service is bound at the path that matches
the specified glob pattern.RouteBuilder.glob(String)public static <T extends Service<?,?>> CompositeServiceEntry<T> ofPrefix(String pathPrefix, T service)
CompositeServiceEntry whose Service is bound under the specified
directory.RouteBuilder.pathPrefix(String)public static <T extends Service<?,?>> CompositeServiceEntry<T> ofExact(String exactPath, T service)
CompositeServiceEntry whose Service is bound at the specified
exact path.RouteBuilder.exact(String)public static <T extends Service<?,?>> CompositeServiceEntry<T> ofCatchAll(T service)
public static <T extends Service<?,?>> CompositeServiceEntry<T> of(String pathPattern, T service)
CompositeServiceEntry whose Service is bound at the specified
path pattern.RouteBuilder.path(String)public static <T extends Service<?,?>> CompositeServiceEntry<T> of(Route route, T service)
public Route route()
Copyright © 2020 LeanCloud. All rights reserved.