public class ProviderRoutingHandler extends Object implements WebServiceHandler
StyxService
in the Provider ObjectStore, and to the index page that organizes and lists these endpoints.
This handler registers as a watcher on the store, and will keep the endpoint list up to date as the store data changes.| Constructor and Description |
|---|
ProviderRoutingHandler(String pathPrefix,
<any> providerDb)
Create a new handler for the given provider object store, with provider admin URLs mounted
under the path "pathPrefix/providerName".
|
| Modifier and Type | Method and Description |
|---|---|
Eventual<HttpResponse> |
handle(HttpRequest request,
HttpInterceptor.Context context) |
public ProviderRoutingHandler(String pathPrefix, <any> providerDb)
pathPrefix - the path prefix added to each provider admin URLproviderDb - the provider object storepublic Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context)
handle in interface WebServiceHandlerCopyright © 2013–2020 Hotels.com. All rights reserved.