org.wso2.carbon.url.mapper.internal.registry
Class RegistryManager
java.lang.Object
org.wso2.carbon.url.mapper.internal.registry.RegistryManager
public class RegistryManager
- extends Object
Registry manager to store and retrieve properties to registry.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegistryManager
public RegistryManager()
addHostToRegistry
public void addHostToRegistry(String hostName,
String webApp,
String tenantDomain,
String appName)
throws Exception
- when getting hosts from registry getHostsFromRegistry method will return
all the hosts in the registry. As like addHostToRegistry will add the
hostinfo to the registry
- Parameters:
hostName - The virtual host to be stored in the registrywebApp - The webapp to be deployed in the virtual host
- Throws:
Exception
getTenantSpecificMappingsFromRegistry
public MappingData[] getTenantSpecificMappingsFromRegistry(String tenantDomain)
throws Exception
- Throws:
Exception
addEprToRegistry
public void addEprToRegistry(String hostName,
String webApp,
String tenantDomain,
String appName)
throws Exception
- when getting hosts from registry getHostsFromRegistry method will return
all the hosts in the registry. As like addHostToRegistry will add the
hostinfo to the registry
- Parameters:
hostName - The virtual host to be stored in the registrywebApp - The webapp to be deployed in the virtual host
- Throws:
Exception
updateHostToRegistry
public void updateHostToRegistry(org.apache.catalina.Host host,
String webApp)
throws Exception
- Parameters:
host - The virtual host to be stored in the registrywebApp - The webapp to be deployed in the virtual host
- Throws:
Exception
removeFromRegistry
public void removeFromRegistry(String hostName)
throws Exception
- Parameters:
hostName - virtual host name to be removed
- Throws:
Exception
getMappingFromRegistry
public org.wso2.carbon.registry.core.Resource getMappingFromRegistry(String hostName)
throws Exception
- Parameters:
hostName - The properties Virtual host name to be retrieved
- Returns:
- The properties of virtual host from registry
- Throws:
Exception
getApplicationContextForHost
public String getApplicationContextForHost(String hostName)
throws Exception
- Throws:
Exception
getServiceNameForHost
public String getServiceNameForHost(String hostName)
throws Exception
- Throws:
Exception
getTenantDomainForHost
public String getTenantDomainForHost(String hostName)
throws Exception
- Throws:
Exception
getAllMappingsFromRegistry
public MappingData[] getAllMappingsFromRegistry()
throws Exception
- Throws:
Exception
getAppNameFromRegistry
public String getAppNameFromRegistry(String hostName)
throws Exception
- Throws:
Exception
Copyright © 2015 WSO2. All rights reserved.