org.wso2.carbon.url.mapper.ui
Class UrlMapperServiceClient

java.lang.Object
  extended by 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..


Constructor Summary
UrlMapperServiceClient(String cookie, String backendServerURL, org.apache.axis2.context.ConfigurationContext configCtx)
           
 
Method Summary
 void addServiceDomain(String host, String epr, String appType)
           
 void addWebAppToHost(String appId, String context, String appType)
           
 void deleteHost(String host)
           
 boolean editHost(String webappName, String oldhost, String newHost)
           
 void editServiceDomain(String newHost, String oldhost)
           
 org.wso2.carbon.url.mapper.stub.types.carbon.MappingData[] getAllMappings()
           
 String[] getHostForEpr(String epr)
           
 String[] getHostForWebApp(String webAppName)
           
 String getHttpPort()
           
 org.wso2.carbon.url.mapper.stub.types.carbon.PaginatedMappingData getPaginatedMappings(int pageNumber, String tenantDomain)
           
 String getPrefix()
           
 boolean isMappingExist(String mappingName)
           
 boolean isMappingLimitExceeded(String webAppName)
           
 void removeServiceDomain(String host)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlMapperServiceClient

public UrlMapperServiceClient(String cookie,
                              String backendServerURL,
                              org.apache.axis2.context.ConfigurationContext configCtx)
                       throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault
Method Detail

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 app
context - 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.