public class HTTPServicesRegistry extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,HttpService> |
servicesInfoMap |
protected CopyOnWriteArrayList<String> |
sortedServiceURIs |
Constructor and Description |
---|
HTTPServicesRegistry(WebSocketServicesRegistry webSocketServicesRegistry) |
Modifier and Type | Method and Description |
---|---|
String |
findTheMostSpecificBasePath(String requestURIPath,
Map<String,HttpService> services) |
HttpService |
getServiceInfo(String basepath)
Get ServiceInfo instance for given interface and base path.
|
Map<String,HttpService> |
getServicesInfoByInterface()
Get ServiceInfo map for given interfaceId.
|
void |
registerService(Service service)
Register a service into the map.
|
protected final Map<String,HttpService> servicesInfoMap
protected CopyOnWriteArrayList<String> sortedServiceURIs
public HTTPServicesRegistry(WebSocketServicesRegistry webSocketServicesRegistry)
public HttpService getServiceInfo(String basepath)
basepath
- basePath of the service.HttpService
instance if exist else nullpublic Map<String,HttpService> getServicesInfoByInterface()
public void registerService(Service service)
service
- requested serviceInfo to be registered.public String findTheMostSpecificBasePath(String requestURIPath, Map<String,HttpService> services)
Copyright © 2018 WSO2. All rights reserved.