org.wso2.carbon.url.mapper.ui
Class UrlMapperServiceClient
java.lang.Object
org.wso2.carbon.url.mapper.ui.UrlMapperServiceClient
public class UrlMapperServiceClient
- extends Object
This is the client to communicate with backend when the tenant tries to
create new virtual host by specifying webapp specific id..
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlMapperServiceClient
public UrlMapperServiceClient(String cookie,
String backendServerURL,
org.apache.axis2.context.ConfigurationContext configCtx)
throws org.apache.axis2.AxisFault
- Throws:
org.apache.axis2.AxisFault
getAllMappings
public org.wso2.carbon.url.mapper.stub.types.carbon.MappingData[] getAllMappings()
throws Exception
- Throws:
Exception
getHttpPort
public String getHttpPort()
throws Exception
- Throws:
Exception
getPrefix
public String getPrefix()
throws Exception
- Throws:
Exception
getPaginatedMappings
public org.wso2.carbon.url.mapper.stub.types.carbon.PaginatedMappingData getPaginatedMappings(int pageNumber,
String tenantDomain)
throws Exception
- Throws:
Exception
isMappingLimitExceeded
public boolean isMappingLimitExceeded(String webAppName)
throws Exception
- Throws:
Exception
editHost
public boolean editHost(String webappName,
String oldhost,
String newHost)
throws Exception
- Throws:
Exception
editServiceDomain
public void editServiceDomain(String newHost,
String oldhost)
throws Exception
- Throws:
Exception
removeServiceDomain
public void removeServiceDomain(String host)
throws Exception
- Throws:
Exception
addServiceDomain
public void addServiceDomain(String host,
String epr,
String appType)
throws Exception
- Throws:
Exception
deleteHost
public void deleteHost(String host)
throws Exception
- Throws:
Exception
addWebAppToHost
public void addWebAppToHost(String appId,
String context,
String appType)
throws Exception
- Parameters:
appId - the tenant specified application ID for a web appcontext - the context of the web app from the appserver localhost
- Throws:
Exception - throws when exception in adding virtual host or webapp
getHostForWebApp
public String[] getHostForWebApp(String webAppName)
throws Exception
- Throws:
Exception
getHostForEpr
public String[] getHostForEpr(String epr)
throws Exception
- Throws:
Exception
isMappingExist
public boolean isMappingExist(String mappingName)
throws Exception
- Throws:
Exception
Copyright © 2015 WSO2. All rights reserved.