org.wso2.carbon.url.mapper
Class UrlMapperAdminService

java.lang.Object
  extended by org.wso2.carbon.core.AbstractAdmin
      extended by org.wso2.carbon.url.mapper.UrlMapperAdminService

public class UrlMapperAdminService
extends org.wso2.carbon.core.AbstractAdmin

Backend service to handle virtual host addition to registry and to tomcat.


Field Summary
 
Fields inherited from class org.wso2.carbon.core.AbstractAdmin
axisConfig, configurationContext
 
Constructor Summary
UrlMapperAdminService()
           
 
Method Summary
 void addServiceDomain(String hostName, String url, String appType)
           
 void addWebAppToHost(String hostName, String uri, String appType)
           
 void deleteHost(String hostName)
           
 void deleteServiceDomain(String hostName)
           
 boolean editHost(String webappName, String newHost, String oldhost)
           
 void editServiceDomain(String newHost, String oldhost)
           
 MappingData[] getAllMappings()
           
 String getDomainNamePrefix()
           
 String[] getHostForEpr(String url)
           
 String[] getHostForWebApp(String url)
           
 String getHttpPort()
           
static PaginatedMappingData getPaginatedMappings(int pageNumber, String tenantDomain)
           
 boolean isMappingExist(String mappingName)
           
 boolean isMappingLimitExceeded(String webAppName)
           
 
Methods inherited from class org.wso2.carbon.core.AbstractAdmin
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlMapperAdminService

public UrlMapperAdminService()
Method Detail

addWebAppToHost

public void addWebAppToHost(String hostName,
                            String uri,
                            String appType)
                     throws UrlMapperException
Throws:
UrlMapperException

getHttpPort

public String getHttpPort()
                   throws UrlMapperException
Throws:
UrlMapperException

getPaginatedMappings

public static PaginatedMappingData getPaginatedMappings(int pageNumber,
                                                        String tenantDomain)
                                                 throws UrlMapperException
Throws:
UrlMapperException

getAllMappings

public MappingData[] getAllMappings()
                             throws UrlMapperException
Throws:
UrlMapperException

addServiceDomain

public void addServiceDomain(String hostName,
                             String url,
                             String appType)
                      throws UrlMapperException
Throws:
UrlMapperException

editServiceDomain

public void editServiceDomain(String newHost,
                              String oldhost)
                       throws UrlMapperException
Throws:
UrlMapperException

deleteServiceDomain

public void deleteServiceDomain(String hostName)
                         throws UrlMapperException,
                                org.apache.axis2.AxisFault
Throws:
UrlMapperException
org.apache.axis2.AxisFault

getHostForEpr

public String[] getHostForEpr(String url)
                       throws UrlMapperException
Throws:
UrlMapperException

getHostForWebApp

public String[] getHostForWebApp(String url)
                          throws UrlMapperException
Throws:
UrlMapperException

getDomainNamePrefix

public String getDomainNamePrefix()

isMappingLimitExceeded

public boolean isMappingLimitExceeded(String webAppName)
                               throws UrlMapperException
Throws:
UrlMapperException

editHost

public boolean editHost(String webappName,
                        String newHost,
                        String oldhost)
                 throws UrlMapperException
Throws:
UrlMapperException

deleteHost

public void deleteHost(String hostName)
                throws UrlMapperException
Throws:
UrlMapperException

isMappingExist

public boolean isMappingExist(String mappingName)
                       throws UrlMapperException
Throws:
UrlMapperException


Copyright © 2015 WSO2. All rights reserved.