Removing unused components

Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/ee5e9639
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/ee5e9639
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/ee5e9639

Branch: refs/heads/master
Commit: ee5e9639b5984c5ddf0964debf00ccf1e5d38aac
Parents: 07c19f6
Author: Imesh Gunaratne <[email protected]>
Authored: Sat Jan 24 15:47:39 2015 +0530
Committer: Imesh Gunaratne <[email protected]>
Committed: Sat Jan 24 15:47:41 2015 +0530

----------------------------------------------------------------------
 .../pom.xml                                     |  108 --
 .../clients/RedirectorServletServiceClient.java |   90 --
 .../servlet/ui/filters/AllPagesFilter.java      |  167 ---
 .../internal/RedirectorServletUIComponent.java  |   45 -
 .../redirector/servlet/ui/util/Util.java        |   67 -
 .../resources/RedirectorServletService.wsdl     |  121 --
 .../pom.xml                                     |   99 --
 .../RedirectorServletServiceComponent.java      |   80 --
 .../services/RedirectorServletService.java      |   37 -
 .../stratos/redirector/servlet/util/Util.java   |   73 --
 .../src/main/resources/META-INF/services.xml    |   30 -
 .../org.apache.stratos.register.ui/pom.xml      |  131 --
 .../ui/clients/PackageInfoServiceClient.java    |   95 --
 .../clients/TenantSelfRegistrationClient.java   |  108 --
 .../register/ui/utils/TenantConfigUtil.java     |  248 ----
 .../src/main/resources/META-INF/component.xml   |   71 --
 .../register/ui/i18n/JSResources.properties     |   23 -
 .../register/ui/i18n/Resources.properties       |   79 --
 .../web/tenant-register/css/tenant-register.css |   97 --
 .../tenant-register/docs/aboutUsagePlans.html   |  105 --
 .../web/tenant-register/docs/images/add-org.png |  Bin 62035 -> 0 bytes
 .../web/tenant-register/docs/userguide.html     |  105 --
 .../domain_availability_ajaxprocessor.jsp       |   51 -
 .../get_package_info_ajaxprocessor.jsp          |   40 -
 .../web/tenant-register/images/ajax-loader.gif  |  Bin 673 -> 0 bytes
 .../web/tenant-register/images/body-bg.gif      |  Bin 419 -> 0 bytes
 .../web/tenant-register/images/button-back.gif  |  Bin 819 -> 0 bytes
 .../images/content-back-left.jpg                |  Bin 2240 -> 0 bytes
 .../web/tenant-register/images/content-back.jpg |  Bin 852 -> 0 bytes
 .../images/create-org-button.gif                |  Bin 2576 -> 0 bytes
 .../tenant-register/images/feature-01-icon.gif  |  Bin 2825 -> 0 bytes
 .../tenant-register/images/feature-02-icon.gif  |  Bin 3361 -> 0 bytes
 .../tenant-register/images/feature-03-icon.gif  |  Bin 3285 -> 0 bytes
 .../web/tenant-register/images/features-bg.gif  |  Bin 4449 -> 0 bytes
 .../web/tenant-register/images/footer.jpg       |  Bin 836 -> 0 bytes
 .../web/tenant-register/images/forum.gif        |  Bin 1977 -> 0 bytes
 .../web/tenant-register/images/header.jpg       |  Bin 5837 -> 0 bytes
 .../web/tenant-register/images/help.gif         |  Bin 1229 -> 0 bytes
 .../web/tenant-register/images/images.gif       |  Bin 1067 -> 0 bytes
 .../tenant-register/images/issue-tracker.gif    |  Bin 1821 -> 0 bytes
 .../web/tenant-register/images/logo.jpg         |  Bin 7171 -> 0 bytes
 .../web/tenant-register/images/mailing-list.gif |  Bin 2064 -> 0 bytes
 .../web/tenant-register/images/page-back.jpg    |  Bin 871 -> 0 bytes
 .../web/tenant-register/images/people.gif       |  Bin 22151 -> 0 bytes
 .../web/tenant-register/images/services.gif     |  Bin 604 -> 0 bytes
 .../tenant-register/images/signup-new-org.gif   |  Bin 356 -> 0 bytes
 .../web/tenant-register/images/thememgt.gif     |  Bin 1030 -> 0 bytes
 .../web/tenant-register/images/user-guide.gif   |  Bin 2161 -> 0 bytes
 .../init_payment_ajaxprocessor.jsp              |  102 --
 .../web/tenant-register/js/register_config.js   |  166 ---
 .../web/tenant-register/js/select_domain.js     |   94 --
 .../web/tenant-register/select_domain.jsp       |  390 ------
 .../web/tenant-register/select_usage_plan.jsp   |  280 ----
 .../submit_tenant_ajaxprocessor.jsp             |   67 -
 .../web/tenant-register/success_register.jsp    |   77 --
 .../pom.xml                                     |  100 --
 .../agent/clients/ClientThreadsInitializer.java |  150 ---
 .../clients/common/ServiceLoginClient.java      |  100 --
 .../service/ApplicationServerClient.java        |  253 ----
 .../agent/clients/service/BAMServerClient.java  |   74 --
 .../agent/clients/service/BPSServerClient.java  |  128 --
 .../agent/clients/service/BRSServerClient.java  |  138 --
 .../agent/clients/service/CEPServerClient.java  |  154 ---
 .../agent/clients/service/DataServerClient.java |  190 ---
 .../agent/clients/service/ESBServerClient.java  |  244 ----
 .../clients/service/GadgetServerClient.java     |  111 --
 .../service/GovernanceRegistryServerClient.java |  182 ---
 .../clients/service/IdentityServerClient.java   |  116 --
 .../clients/service/ManagerServiceClient.java   |  113 --
 .../clients/service/MashupServerClient.java     |  192 ---
 .../service/MessageBrokerServiceClient.java     |  158 ---
 .../constants/StatusMonitorAgentConstants.java  |   55 -
 .../internal/StatusMonitorAgentComponent.java   |  110 --
 .../agent/internal/core/MySQLConnector.java     |  277 ----
 .../pom.xml                                     |   79 --
 .../core/StatusMonitorConfigurationBuilder.java |  247 ----
 .../monitor/core/beans/AuthConfigBean.java      |   61 -
 .../core/beans/SampleTenantConfigBean.java      |   34 -
 .../core/constants/StatusMonitorConstants.java  |  152 ---
 .../core/exception/StatusMonitorException.java  |   33 -
 .../internal/StatusMonitorCoreComponent.java    |   92 --
 .../core/jdbc/MySQLConnectionInitializer.java   |  247 ----
 .../monitor/core/util/StatusMonitorUtil.java    |   72 --
 .../src/main/resources/META-INF/component.xml   |   44 -
 .../pom.xml                                     |   84 --
 .../ui/clients/HealthMonitorServiceClient.java  |  105 --
 .../monitor/ui/utils/StatusMonitorUtil.java     |  107 --
 .../src/main/resources/META-INF/component.xml   |   49 -
 .../monitor/ui/i18n/JSResources.properties      |   16 -
 .../status/monitor/ui/i18n/Resources.properties |   29 -
 .../resources/web/status-monitor/css/status.css |   80 --
 .../status-monitor/docs/images/view-details.png |  Bin 121916 -> 0 bytes
 .../status-monitor/docs/images/view-status.png  |  Bin 149085 -> 0 bytes
 .../web/status-monitor/docs/userguide.html      |   57 -
 .../web/status-monitor/images/services.gif      |  Bin 604 -> 0 bytes
 .../web/status-monitor/images/services1.gif     |  Bin 608 -> 0 bytes
 .../web/status-monitor/service-status.jsp       |  127 --
 .../web/status-monitor/status-details.jsp       |  138 --
 .../org.apache.stratos.status.monitor/pom.xml   |   80 --
 .../beans/ServiceStateDetailInfoBean.java       |   62 -
 .../monitor/beans/ServiceStateInfoBean.java     |   61 -
 .../internal/StatusMonitorServiceComponent.java |  103 --
 .../monitor/internal/core/MySQLConnector.java   |  171 ---
 .../monitor/services/HealthMonitorService.java  |   68 -
 .../src/main/resources/META-INF/component.xml   |   44 -
 .../src/main/resources/META-INF/services.xml    |   36 -
 .../pom.xml                                     |   90 --
 .../dispatcher/MultitenantDispatcher.java       |   68 -
 .../TenantDispatcherServiceComponent.java       |  146 ---
 .../org.apache.stratos.tenant.mgt.core/pom.xml  |   86 --
 .../tenant/mgt/core/TenantPersistor.java        |  347 -----
 .../internal/TenantMgtCoreServiceComponent.java |  125 --
 .../tenant/mgt/core/util/TenantCoreUtil.java    |   97 --
 .../pom.xml                                     |  103 --
 .../mgt/email/sender/internal/DataHolder.java   |  107 --
 .../TenantMgtEmailSenderServiceComponent.java   |  106 --
 .../sender/listener/EmailSenderListener.java    |   92 --
 .../sender/util/TenantMgtEmailSenderUtil.java   |  485 -------
 .../org.apache.stratos.tenant.mgt.ui/pom.xml    |  121 --
 .../ui/clients/PackageInfoServiceClient.java    |  100 --
 .../mgt/ui/clients/TenantServiceClient.java     |  121 --
 .../tenant/mgt/ui/utils/TenantMgtUtil.java      |  217 ----
 .../src/main/resources/META-INF/component.xml   |   62 -
 .../tenant/mgt/ui/i18n/JSResources.properties   |   21 -
 .../tenant/mgt/ui/i18n/Resources.properties     |   73 --
 .../activate_tenant_ajaxprocessor.jsp           |   59 -
 .../resources/web/tenant-mgt/add_tenant.jsp     |  387 ------
 .../check_domain_availability_ajaxprocessor.jsp |   38 -
 .../resources/web/tenant-mgt/css/tenant.css     |   83 --
 .../web/tenant-mgt/docs/aboutUsagePlans.html    |  105 --
 .../web/tenant-mgt/docs/images/add-org.png      |  Bin 49926 -> 0 bytes
 .../web/tenant-mgt/docs/images/add-tenant.png   |  Bin 28704 -> 0 bytes
 .../web/tenant-mgt/docs/images/view-tenants.png |  Bin 11896 -> 0 bytes
 .../web/tenant-mgt/docs/userguide.html          |   57 -
 .../get_package_info_ajaxprocessor.jsp          |   40 -
 .../web/tenant-mgt/images/multi_tenancy.png     |  Bin 768 -> 0 bytes
 .../web/tenant-mgt/images/services.gif          |  Bin 604 -> 0 bytes
 .../web/tenant-mgt/images/services1.gif         |  Bin 608 -> 0 bytes
 .../web/tenant-mgt/js/tenant_config.js          |  237 ----
 .../web/tenant-mgt/js/theme_resource_util.js    |   18 -
 .../tenant-mgt/submit_tenant_ajaxprocessor.jsp  |   84 --
 .../resources/web/tenant-mgt/view_tenants.jsp   |  237 ----
 .../org.apache.stratos.tenant.mgt/pom.xml       |  124 --
 .../mgt/beans/PaginatedTenantInfoBean.java      |   57 -
 .../exception/TenantManagementException.java    |   33 -
 .../mgt/internal/TenantMgtServiceComponent.java |  241 ----
 .../mgt/internal/util/TenantMgtRampartUtil.java |   69 -
 .../mgt/realm/CloudWSRealmConfigBuilder.java    |  139 --
 .../mgt/realm/IdaasWSRealmConfigBuilder.java    |   88 --
 .../services/GAppTenantRegistrationService.java |  141 --
 .../InMemoryPasswordcallbackHandler.java        |   59 -
 .../mgt/services/TenantMgtAdminService.java     |  552 --------
 .../services/TenantSelfRegistrationService.java |  194 ---
 .../stratos/tenant/mgt/util/TenantMgtUtil.java  |  457 -------
 .../util/TenantRegistryDataDeletionUtil.java    |  120 --
 .../mgt/util/TenantUMDataDeletionUtil.java      |  113 --
 .../src/main/resources/META-INF/component.xml   |   43 -
 .../src/main/resources/META-INF/services.xml    |  161 ---
 .../org.apache.stratos.theme.mgt.ui/pom.xml     |  141 --
 .../mgt/ui/clients/ThemeMgtServiceClient.java   |  424 ------
 .../processors/AddThemeResourceProcessor.java   |  223 ----
 .../mgt/ui/servlets/ThemeResourceServlet.java   |  125 --
 .../stratos/theme/mgt/ui/utils/ThemeUtil.java   |   68 -
 .../src/main/resources/META-INF/component.xml   |   69 -
 .../theme/mgt/ui/i18n/JSResources.properties    |   23 -
 .../theme/mgt/ui/i18n/Resources.properties      |   72 --
 .../add_collection_ajaxprocessor.jsp            |   50 -
 .../add_text_resource_ajaxprocessor.jsp         |   58 -
 .../web/tenant-theme/content_ajaxprocessor.jsp  |  242 ----
 .../resources/web/tenant-theme/css-editor.jsp   |   59 -
 .../web/tenant-theme/css/loginpage.css          |  131 --
 .../resources/web/tenant-theme/css/tenant.css   |   95 --
 .../web/tenant-theme/css/tenent-theme.css       |   53 -
 .../web/tenant-theme/css/theme-mgt.css          |   37 -
 .../web/tenant-theme/delete_ajaxprocessor.jsp   |   48 -
 .../display_text_content_ajaxprocessor.jsp      |   48 -
 .../tenant-theme/docs/images/change-logo.png    |  Bin 14821 -> 0 bytes
 .../web/tenant-theme/docs/images/edit-theme.png |  Bin 83056 -> 0 bytes
 .../tenant-theme/docs/images/select-theme.png   |  Bin 61602 -> 0 bytes
 .../web/tenant-theme/docs/userguide.html        |   78 --
 .../edit_text_content_ajaxprocessor.jsp         |   97 --
 .../web/tenant-theme/images/ajax-loader.gif     |  Bin 673 -> 0 bytes
 .../web/tenant-theme/images/button-back.gif     |  Bin 819 -> 0 bytes
 .../tenant-theme/images/content-back-left.jpg   |  Bin 2240 -> 0 bytes
 .../web/tenant-theme/images/content-back.jpg    |  Bin 852 -> 0 bytes
 .../tenant-theme/images/create-org-button.gif   |  Bin 2576 -> 0 bytes
 .../web/tenant-theme/images/footer.jpg          |  Bin 836 -> 0 bytes
 .../resources/web/tenant-theme/images/forum.gif |  Bin 1977 -> 0 bytes
 .../web/tenant-theme/images/header.jpg          |  Bin 5837 -> 0 bytes
 .../resources/web/tenant-theme/images/help.gif  |  Bin 1229 -> 0 bytes
 .../web/tenant-theme/images/images.gif          |  Bin 1067 -> 0 bytes
 .../web/tenant-theme/images/issue-tracker.gif   |  Bin 1821 -> 0 bytes
 .../resources/web/tenant-theme/images/logo.jpg  |  Bin 7171 -> 0 bytes
 .../web/tenant-theme/images/logomgt.gif         |  Bin 596 -> 0 bytes
 .../web/tenant-theme/images/mailing-list.gif    |  Bin 2064 -> 0 bytes
 .../web/tenant-theme/images/page-back.jpg       |  Bin 871 -> 0 bytes
 .../web/tenant-theme/images/people.gif          |  Bin 22151 -> 0 bytes
 .../web/tenant-theme/images/sel-02.jpg          |  Bin 809 -> 0 bytes
 .../web/tenant-theme/images/services.gif        |  Bin 604 -> 0 bytes
 .../web/tenant-theme/images/thememgt.gif        |  Bin 1030 -> 0 bytes
 .../web/tenant-theme/images/user-guide.gif      |  Bin 2161 -> 0 bytes
 .../import_resource_ajaxprocessor.jsp           |  101 --
 .../web/tenant-theme/js/editarea/change_log.txt |  281 ----
 .../js/editarea/edit_area/autocompletion.js     |  491 -------
 .../js/editarea/edit_area/edit_area.css         |  530 --------
 .../js/editarea/edit_area/edit_area.js          |  525 --------
 .../js/editarea/edit_area/edit_area_full.js     |   38 -
 .../editarea/edit_area/edit_area_functions.js   | 1203 ------------------
 .../js/editarea/edit_area/edit_area_loader.js   | 1080 ----------------
 .../js/editarea/edit_area/elements_functions.js |  333 -----
 .../js/editarea/edit_area/highlight.js          |  391 ------
 .../edit_area/images/autocompletion.gif         |  Bin 359 -> 0 bytes
 .../js/editarea/edit_area/images/close.gif      |  Bin 102 -> 0 bytes
 .../js/editarea/edit_area/images/fullscreen.gif |  Bin 198 -> 0 bytes
 .../js/editarea/edit_area/images/go_to_line.gif |  Bin 1053 -> 0 bytes
 .../js/editarea/edit_area/images/help.gif       |  Bin 295 -> 0 bytes
 .../js/editarea/edit_area/images/highlight.gif  |  Bin 256 -> 0 bytes
 .../js/editarea/edit_area/images/load.gif       |  Bin 1041 -> 0 bytes
 .../js/editarea/edit_area/images/move.gif       |  Bin 257 -> 0 bytes
 .../editarea/edit_area/images/newdocument.gif   |  Bin 170 -> 0 bytes
 .../js/editarea/edit_area/images/opacity.png    |  Bin 147 -> 0 bytes
 .../js/editarea/edit_area/images/processing.gif |  Bin 825 -> 0 bytes
 .../js/editarea/edit_area/images/redo.gif       |  Bin 169 -> 0 bytes
 .../edit_area/images/reset_highlight.gif        |  Bin 168 -> 0 bytes
 .../js/editarea/edit_area/images/save.gif       |  Bin 285 -> 0 bytes
 .../js/editarea/edit_area/images/search.gif     |  Bin 191 -> 0 bytes
 .../edit_area/images/smooth_selection.gif       |  Bin 174 -> 0 bytes
 .../js/editarea/edit_area/images/spacer.gif     |  Bin 43 -> 0 bytes
 .../edit_area/images/statusbar_resize.gif       |  Bin 79 -> 0 bytes
 .../js/editarea/edit_area/images/undo.gif       |  Bin 175 -> 0 bytes
 .../js/editarea/edit_area/images/word_wrap.gif  |  Bin 951 -> 0 bytes
 .../js/editarea/edit_area/keyboard.js           |  145 ---
 .../js/editarea/edit_area/langs/en.js           |   67 -
 .../js/editarea/edit_area/license_apache.txt    |    7 -
 .../js/editarea/edit_area/license_bsd.txt       |   10 -
 .../js/editarea/edit_area/license_lgpl.txt      |  458 -------
 .../js/editarea/edit_area/manage_area.js        |  623 ---------
 .../js/editarea/edit_area/reg_syntax.js         |  166 ---
 .../js/editarea/edit_area/reg_syntax/basic.js   |   69 -
 .../editarea/edit_area/reg_syntax/brainfuck.js  |   44 -
 .../js/editarea/edit_area/reg_syntax/c.js       |   62 -
 .../editarea/edit_area/reg_syntax/coldfusion.js |  119 --
 .../js/editarea/edit_area/reg_syntax/cpp.js     |   65 -
 .../js/editarea/edit_area/reg_syntax/css.js     |   84 --
 .../js/editarea/edit_area/reg_syntax/html.js    |   50 -
 .../js/editarea/edit_area/reg_syntax/java.js    |   56 -
 .../js/editarea/edit_area/reg_syntax/js.js      |   93 --
 .../js/editarea/edit_area/reg_syntax/pas.js     |   82 --
 .../js/editarea/edit_area/reg_syntax/perl.js    |   88 --
 .../js/editarea/edit_area/reg_syntax/php.js     |  156 ---
 .../js/editarea/edit_area/reg_syntax/python.js  |  144 ---
 .../editarea/edit_area/reg_syntax/robotstxt.js  |   24 -
 .../js/editarea/edit_area/reg_syntax/ruby.js    |   67 -
 .../js/editarea/edit_area/reg_syntax/sql.js     |   55 -
 .../js/editarea/edit_area/reg_syntax/tsql.js    |   87 --
 .../js/editarea/edit_area/reg_syntax/vb.js      |   52 -
 .../js/editarea/edit_area/reg_syntax/xml.js     |   56 -
 .../js/editarea/edit_area/regexp.js             |  139 --
 .../js/editarea/edit_area/resize_area.js        |   73 --
 .../js/editarea/edit_area/search_replace.js     |  174 ---
 .../js/editarea/edit_area/template.html         |  118 --
 .../tenant-theme/js/editarea/license_apache.txt |    7 -
 .../tenant-theme/js/editarea/license_bsd.txt    |   10 -
 .../tenant-theme/js/editarea/license_lgpl.txt   |  458 -------
 .../web/tenant-theme/js/editarea/todo.txt       |   71 --
 .../web/tenant-theme/js/theme_resource_util.js  |  849 ------------
 .../resources/web/tenant-theme/logo_mgt.jsp     |  221 ----
 .../web/tenant-theme/metadata_resourcepath.jsp  |  107 --
 .../web/tenant-theme/raw-collection-content.jsp |  756 -----------
 .../rename_resource_ajaxprocessor.jsp           |   42 -
 .../web/tenant-theme/theme_advanced.jsp         |  140 --
 .../resources/web/tenant-theme/theme_mgt.jsp    |  240 ----
 .../tenant-theme/theme_mgt_ajaxprocessor.jsp    |   49 -
 .../web/tenant-theme/update_text_content.jsp    |   52 -
 components/org.apache.stratos.theme.mgt/pom.xml |  105 --
 .../TenantThemeMgtServiceComponent.java         |  101 --
 .../theme/mgt/services/ThemeMgtService.java     |  196 ---
 .../theme/mgt/util/ThemeLoadingListener.java    |   79 --
 .../stratos/theme/mgt/util/ThemeUtil.java       |  306 -----
 .../src/main/resources/META-INF/component.xml   |   31 -
 .../src/main/resources/META-INF/services.xml    |  105 --
 .../org.apache.stratos.throttling.agent/pom.xml |  138 --
 .../throttling/agent/ThrottlingAgent.java       |  246 ----
 .../Axis2ConfigurationContextObserverImpl.java  |   45 -
 .../agent/cache/TenantThrottlingInfo.java       |   56 -
 .../agent/cache/ThrottlingActionInfo.java       |   40 -
 .../agent/cache/ThrottlingInfoCache.java        |  121 --
 .../cache/ThrottlingInfoCacheUpdaterTask.java   |   82 --
 .../MultitenancyThrottlingServiceClient.java    |   65 -
 .../agent/client/ThrottlingRuleInvoker.java     |   23 -
 .../conf/ThrottlingAgentConfiguration.java      |   88 --
 .../ThrottlingAgentServiceComponent.java        |  191 ---
 .../listeners/PerRegistryRequestListener.java   |  119 --
 .../agent/listeners/PerUserAddListener.java     |   90 --
 .../agent/listeners/ServiceRequestListener.java |  114 --
 .../agent/listeners/ThrottlingModule.java       |   50 -
 .../agent/listeners/WebAppRequestListener.java  |  180 ---
 .../agent/validation/ValidationException.java   |   28 -
 .../agent/validation/ValidationInfo.java        |   42 -
 .../validation/ValidationInfoRetriever.java     |  112 --
 .../src/main/resources/META-INF/module.xml      |   34 -
 .../MultitenancyThrottlingService.wsdl          |  101 --
 .../pom.xml                                     |  177 ---
 .../manager/conf/ThrottlingConfiguration.java   |  107 --
 .../conf/ThrottlingTaskConfiguration.java       |  120 --
 ...ThrottlingTaskDataProviderConfiguration.java |  117 --
 .../dataobjects/ThrottlingAccessValidation.java |   73 --
 .../dataobjects/ThrottlingDataContext.java      |  148 ---
 .../dataobjects/ThrottlingDataEntry.java        |   87 --
 .../ThrottlingDataEntryConstants.java           |   44 -
 .../dataproviders/BillingDataProvider.java      |   55 -
 .../manager/dataproviders/DataProvider.java     |   38 -
 .../dataproviders/UsageDataProvider.java        |  106 --
 .../manager/exception/ThrottlingException.java  |   28 -
 .../ThrottlingManagerServiceComponent.java      |  129 --
 .../manager/rules/KnowledgeBaseManager.java     |   73 --
 .../throttling/manager/rules/RuleInvoker.java   |   92 --
 .../throttling/manager/rules/RuleProperty.java  |   45 -
 .../manager/scheduling/ThrottlingJob.java       |  120 --
 .../services/MultitenancyThrottlingService.java |   59 -
 .../services/ThrottlingRuleEditorService.java   |   90 --
 .../stratos/throttling/manager/tasks/Task.java  |   94 --
 .../manager/utils/DataProviderIterator.java     |   72 --
 .../stratos/throttling/manager/utils/Util.java  |  464 -------
 .../validation/ValidationInfoManager.java       |  122 --
 .../src/main/resources/META-INF/component.xml   |   40 -
 .../src/main/resources/META-INF/services.xml    |   59 -
 .../carbon/throttling/test/ThrottlingTest.java  |  228 ----
 .../throttling/test/utils/BaseTestCase.java     |  116 --
 .../test/utils/CustomDataProvider.java          |   46 -
 .../resources/carbon-home/dbscripts/db2.sql     |  469 -------
 .../resources/carbon-home/dbscripts/derby.sql   |  383 ------
 .../test/resources/carbon-home/dbscripts/h2.sql |  356 ------
 .../resources/carbon-home/dbscripts/mssql.sql   |  513 --------
 .../resources/carbon-home/dbscripts/mysql.sql   |  389 ------
 .../resources/carbon-home/dbscripts/oracle.sql  |  663 ----------
 .../carbon-home/dbscripts/oracle_rac.sql        |  663 ----------
 .../carbon-home/dbscripts/postgresql.sql        |  446 -------
 .../resources/carbon-home/repository/README     |   22 -
 .../carbon-home/repository/conf/README          |   39 -
 .../carbon-home/repository/conf/axis2.xml       |  633 ---------
 .../repository/conf/axis2_client.xml            |  283 ----
 .../repository/conf/broker-config.xml           |   55 -
 .../carbon-home/repository/conf/carbon.xml      |  354 ------
 .../repository/conf/cipher-text.properties      |   29 -
 .../repository/conf/mgt-transports.xml          |   87 --
 .../carbon-home/repository/conf/mime.types      |  728 -----------
 .../repository/conf/node/registry.xml           |   84 --
 .../repository/conf/node/user-mgt.xml           |  106 --
 .../repository/conf/ports-config.xml            |   58 -
 .../carbon-home/repository/conf/registry.xml    |  102 --
 .../repository/conf/secret-conf.properties      |   58 -
 .../carbon-home/repository/conf/synapse.xml     |   31 -
 .../repository/conf/throttling-config1.xml      |   48 -
 .../repository/conf/throttling-config2.xml      |   48 -
 .../repository/conf/throttling-config3.xml      |   48 -
 .../repository/conf/throttling-rules1.drl       |   79 --
 .../repository/conf/throttling-rules2.drl       |   37 -
 .../repository/conf/throttling-rules3.drl       |   35 -
 .../carbon-home/repository/conf/user-mgt.xml    |  117 --
 .../carbon-home/repository/conf/wrapper.conf    |  146 ---
 .../carbon-home/repository/logs/README          |    1 -
 .../src/test/resources/registry.xml             |  250 ----
 .../user-test/adv-jdbc-readonly-test.xml        |   60 -
 .../resources/user-test/jdbc-readonly-test.xml  |   60 -
 .../user-test/user-mgt-registry-test.xml        |   95 --
 .../test/resources/user-test/user-mgt-test.xml  |   96 --
 .../org.apache.stratos.throttling.ui/pom.xml    |  126 --
 .../ui/clients/ThrottlingRuleEditorClient.java  |   98 --
 .../src/main/resources/META-INF/component.xml   |   37 -
 .../resources/ThrottlingRuleEditorService.wsdl  |  167 ---
 .../throttling/ui/i18n/JSResources.properties   |   22 -
 .../throttling/ui/i18n/Resources.properties     |   23 -
 .../web/mt-throttling/docs/images/add-org.png   |  Bin 49926 -> 0 bytes
 .../web/mt-throttling/docs/userguide.html       |   36 -
 .../web/mt-throttling/images/throttling.gif     |  Bin 1008 -> 0 bytes
 .../resources/web/mt-throttling/throttling.jsp  |  104 --
 .../mt-throttling/throttling_ajaxprocessor.jsp  |   30 -
 .../org.apache.stratos.usage.agent/pom.xml      |  146 ---
 .../usage/agent/api/CustomMeteringAgent.java    |  223 ----
 .../agent/beans/APIManagerRequestStats.java     |   98 --
 .../usage/agent/beans/BandwidthUsage.java       |   60 -
 .../agent/config/UsageAgentConfiguration.java   |  119 --
 .../usage/agent/exception/UsageException.java   |   31 -
 .../internal/UsageAgentServiceComponent.java    |  202 ---
 .../agent/listeners/RegistryUsageListener.java  |  365 ------
 .../RegistryUsagePersistingListener.java        |  311 -----
 .../agent/listeners/StatisticsInHandler.java    |   73 --
 .../agent/listeners/StatisticsOutHandler.java   |   83 --
 ...eStatsAxis2ConfigurationContextObserver.java |   48 -
 .../listeners/axis2/RequestMeteringHandler.java |  109 --
 .../listeners/axis2/RequestMeteringModule.java  |   47 -
 .../usage/agent/persist/BandwidthPersistor.java |   58 -
 .../BandwidthUsageDataRetrievalTask.java        |  114 --
 .../agent/persist/RegistryUsagePersister.java   |   76 --
 .../agent/persist/ServiceDataPersistor.java     |   72 --
 .../persist/UsageDataPersistenceManager.java    |   91 --
 .../agent/persist/UsageDataPersistenceTask.java |  166 ---
 .../agent/services/CustomMeteringService.java   |   95 --
 .../usage/agent/util/MonitoredReader.java       |   50 -
 .../usage/agent/util/MonitoredWriter.java       |   53 -
 .../usage/agent/util/PublisherUtils.java        |  442 -------
 .../usage/agent/util/UsageAgentConstants.java   |   52 -
 .../apache/stratos/usage/agent/util/Util.java   |  178 ---
 .../src/main/resources/META-INF/component.xml   |   36 -
 .../src/main/resources/META-INF/module.xml      |   51 -
 .../src/main/resources/META-INF/services.xml    |   32 -
 .../META-INF/usage-throttling-agent-config.xml  |   33 -
 .../pom.xml                                     |  127 --
 .../DailyCartridgeStatsSummarizerHelper.java    |   58 -
 .../DailyServiceStatsSummarizerHelper.java      |   58 -
 .../summary/helper/DailySummarizerHelper.java   |   58 -
 .../HourlyCartridgeStatsSummarizerHelper.java   |   55 -
 .../HourlyServiceStatsSummarizerHelper.java     |   55 -
 .../summary/helper/HourlySummarizerHelper.java  |   55 -
 .../MonthlyCartridgeStatsSummarizerHelper.java  |   60 -
 .../MonthlyServiceStatsSummarizerHelper.java    |   60 -
 .../summary/helper/MonthlySummarizerHelper.java |   60 -
 .../UsageSummaryHelperServiceComponent.java     |   84 --
 .../summary/helper/util/DataAccessObject.java   |  400 ------
 .../usage/summary/helper/util/DataHolder.java   |   51 -
 components/org.apache.stratos.usage.ui/pom.xml  |  127 --
 .../usage/ui/clients/UsageServiceClient.java    |  116 --
 .../usage/ui/report/AllTenantUsageData.java     |   96 --
 .../usage/ui/report/AllTenantUsageReport.java   |  110 --
 .../stratos/usage/ui/report/UsageReport.java    |  195 ---
 .../stratos/usage/ui/utils/UsageUtil.java       |  251 ----
 .../src/main/resources/META-INF/component.xml   |   74 --
 .../src/main/resources/UsageService.wsdl        |  605 ---------
 .../usage/ui/i18n/JSResources.properties        |   23 -
 .../stratos/usage/ui/i18n/Resources.properties  |   78 --
 .../tenant-usage/all_tenant_instance_usage.jsp  |  217 ----
 .../web/tenant-usage/all_tenant_usage.jsp       |  209 ---
 .../tenant-usage/all_tenant_usage_report.jsp    |   26 -
 .../web/tenant-usage/any_tenant_usage.jsp       |  463 -------
 .../web/tenant-usage/css/tenant-usage.css       |   49 -
 .../web/tenant-usage/docs/images/view-usage.png |  Bin 61024 -> 0 bytes
 .../web/tenant-usage/docs/userguide.html        |   78 --
 .../images/instance-usage-report.gif            |  Bin 849 -> 0 bytes
 .../tenant-usage/images/tenant-usage-report.gif |  Bin 1008 -> 0 bytes
 .../tenant-usage/images/user-usage-report.gif   |  Bin 1033 -> 0 bytes
 .../tenant-usage/js/all-tenant-usage-report.js  |   70 -
 .../web/tenant-usage/js/tenant-usage.js         |   28 -
 .../web/tenant-usage/js/usage-report.js         |   69 -
 .../resources/web/tenant-usage/tenant_usage.jsp |  475 -------
 .../resources/web/tenant-usage/usage_report.jsp |   29 -
 components/org.apache.stratos.usage/pom.xml     |  146 ---
 .../stratos/usage/api/TenantUsageRetriever.java |  607 ---------
 .../usage/beans/APIManagerUsageStats.java       |   72 --
 .../usage/beans/BandwidthStatistics.java        |   65 -
 .../usage/beans/CartridgeStatistics.java        |   59 -
 .../usage/beans/InstanceUsageStatics.java       |   91 --
 .../usage/beans/PaginatedInstanceUsage.java     |   59 -
 .../usage/beans/PaginatedTenantUsageInfo.java   |   47 -
 .../stratos/usage/beans/RequestStatistics.java  |   63 -
 .../stratos/usage/beans/TenantDataCapacity.java |   55 -
 .../apache/stratos/usage/beans/TenantUsage.java |  219 ----
 .../apache/stratos/usage/beans/UsageEntry.java  |   49 -
 .../usage/internal/UsageServiceComponent.java   |  101 --
 .../stratos/usage/services/UsageService.java    |  204 ---
 .../stratos/usage/util/DataAccessObject.java    |  642 ----------
 .../org/apache/stratos/usage/util/Util.java     |  108 --
 .../src/main/resources/META-INF/component.xml   |   48 -
 .../src/main/resources/META-INF/services.xml    |   49 -
 .../reports/all_tenant_usage_report.jrxml       |  157 ---
 .../main/resources/reports/usage_report.jrxml   |  155 ---
 466 files changed, 53851 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/ee5e9639/components/org.apache.stratos.redirector.servlet.ui/pom.xml
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.redirector.servlet.ui/pom.xml 
b/components/org.apache.stratos.redirector.servlet.ui/pom.xml
deleted file mode 100644
index 40a5693..0000000
--- a/components/org.apache.stratos.redirector.servlet.ui/pom.xml
+++ /dev/null
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- 
-  #  Licensed to the Apache Software Foundation (ASF) under one
-  #  or more contributor license agreements.  See the NOTICE file
-  #  distributed with this work for additional information
-  #  regarding copyright ownership.  The ASF licenses this file
-  #  to you under the Apache License, Version 2.0 (the
-  #  "License"); you may not use this file except in compliance
-  #  with the License.  You may obtain a copy of the License at
-  #  
-  #  http://www.apache.org/licenses/LICENSE-2.0
-  #  
-  #  Unless required by applicable law or agreed to in writing,
-  #  software distributed under the License is distributed on an
-  #  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  #  KIND, either express or implied.  See the License for the
-  #  specific language governing permissions and limitations
-  #  under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
-    <parent>
-        <groupId>org.apache.stratos</groupId>
-        <artifactId>stratos-components-parent</artifactId>
-        <version>4.1.0-SNAPSHOT</version>
-    </parent>
-
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>org.apache.stratos.redirector.servlet.ui</artifactId>
-    <packaging>bundle</packaging>
-    <name>Apache Stratos - Tenant Specific URL redirector UI component</name>
-
-    <build>
-
-        <plugins>
-            <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-scr-plugin</artifactId>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                
-                <extensions>true</extensions>
-                <configuration>
-                    <instructions>
-                        
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
-                        <Bundle-Name>${project.artifactId}</Bundle-Name>
-                        <Private-Package>
-                            org.apache.stratos.redirector.servlet.ui.*,
-                            
org.apache.stratos.redirector.servlet.ui.internal.*,
-                            org.apache.stratos.redirector.servlet.ui.clients.*,
-                            org.apache.stratos.redirector.servlet.ui.util.*,
-                        </Private-Package>
-                        <Import-Package>
-                           org.apache.stratos.redirector.servlet.stub.*; 
version="${project.version}",
-                            
javax.servlet;version="${imp.pkg.version.javax.servlet}",
-                            
javax.servlet.http;version="${imp.pkg.version.javax.servlet}",
-                            org.apache.lucene.*,
-                            *;resolution:=optional
-                        </Import-Package>
-                        <DynamicImport-Package>*</DynamicImport-Package>
-                    </instructions>
-                </configuration>
-            </plugin>
-
-        </plugins>
-    </build>
-
-    <dependencies>
-
-        <dependency>
-            <groupId>commons-logging</groupId>
-            <artifactId>commons-logging</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.eclipse.equinox</groupId>
-            <artifactId>javax.servlet</artifactId>
-           <version>3.0.0.v201112011016</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.axis2.wso2</groupId>
-            <artifactId>axis2</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.ws.commons.axiom.wso2</groupId>
-            <artifactId>axiom</artifactId>
-           <version>${axiom.wso2.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.ui</artifactId>
-            <version>${carbon.platform.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.stratos</groupId>
-            <artifactId>org.apache.stratos.common</artifactId>
-           <version>${project.version}</version>
-        </dependency>
-       <dependency>
-            <groupId>org.apache.stratos</groupId>
-            <artifactId>org.apache.stratos.redirector.servlet.stub</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-
-    </dependencies>
-
-</project>

http://git-wip-us.apache.org/repos/asf/stratos/blob/ee5e9639/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/clients/RedirectorServletServiceClient.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/clients/RedirectorServletServiceClient.java
 
b/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/clients/RedirectorServletServiceClient.java
deleted file mode 100644
index 00fc3b2..0000000
--- 
a/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/clients/RedirectorServletServiceClient.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.redirector.servlet.ui.clients;
-
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.client.Options;
-import org.apache.axis2.client.ServiceClient;
-import org.apache.axis2.context.ConfigurationContext;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.wso2.carbon.CarbonConstants;
-import org.apache.stratos.redirector.servlet.stub.RedirectorServletServiceStub;
-import org.wso2.carbon.registry.core.exceptions.RegistryException;
-import org.wso2.carbon.ui.CarbonUIUtil;
-import org.wso2.carbon.utils.ServerConstants;
-
-import javax.servlet.ServletContext;
-import javax.servlet.http.HttpSession;
-
-public class RedirectorServletServiceClient {
-     private static final Log log = 
LogFactory.getLog(RedirectorServletServiceClient.class);
-
-    private RedirectorServletServiceStub stub;
-    private String epr;
-
-    public RedirectorServletServiceClient(
-            String cookie, String backendServerURL, ConfigurationContext 
configContext)
-            throws RegistryException {
-
-        epr = backendServerURL + "RedirectorServletService";
-
-        try {
-            stub = new RedirectorServletServiceStub(configContext, epr);
-
-            ServiceClient client = stub._getServiceClient();
-            Options option = client.getOptions();
-            option.setManageSession(true);
-            
option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, 
cookie);
-
-        } catch (AxisFault axisFault) {
-            String msg = "Failed to initiate AddServices service client. " + 
axisFault.getMessage();
-            log.error(msg, axisFault);
-            throw new RegistryException(msg, axisFault);
-        }
-    }
-
-    public RedirectorServletServiceClient(ServletContext context, HttpSession 
session)
-            throws RegistryException {
-
-        String cookie = 
(String)session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);
-        String backendServerURL = CarbonUIUtil.getServerURL(context, session);
-        ConfigurationContext configContext = (ConfigurationContext) context.
-                getAttribute(CarbonConstants.CONFIGURATION_CONTEXT);
-        epr = backendServerURL + "RedirectorServletService";
-
-        try {
-            stub = new RedirectorServletServiceStub(configContext, epr);
-
-            ServiceClient client = stub._getServiceClient();
-            Options option = client.getOptions();
-            option.setManageSession(true);
-            
option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, 
cookie);
-
-        } catch (AxisFault axisFault) {
-            String msg = "Failed to initiate Add Services service client. " + 
axisFault.getMessage();
-            log.error(msg, axisFault);
-            throw new RegistryException(msg, axisFault);
-        }
-    }
-
-    public String validateTenant(String tenantDomain) throws Exception {
-        return stub.validateTenant(tenantDomain);
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/ee5e9639/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/filters/AllPagesFilter.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/filters/AllPagesFilter.java
 
b/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/filters/AllPagesFilter.java
deleted file mode 100644
index 4d64d7a..0000000
--- 
a/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/filters/AllPagesFilter.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.redirector.servlet.ui.filters;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.wso2.carbon.utils.multitenancy.MultitenantConstants;
-import org.apache.stratos.common.constants.StratosConstants;
-import 
org.apache.stratos.redirector.servlet.ui.clients.RedirectorServletServiceClient;
-
-import javax.servlet.*;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.StringTokenizer;
-
-public class AllPagesFilter implements Filter {
-    private static final Log log = LogFactory.getLog(AllPagesFilter.class);
-    private static Map<String, Boolean> tenantExistMap = new HashMap<String, 
Boolean>();
-
-    ServletContext context;
-
-    public void init(FilterConfig filterConfig) throws ServletException {
-        context = filterConfig.getServletContext();
-    }
-
-    public void doFilter(ServletRequest servletRequest,
-                         ServletResponse servletResponse, FilterChain 
filterChain) throws
-            IOException, ServletException {
-        if (!(servletRequest instanceof HttpServletRequest)) {
-            // no filtering
-            return;
-        }
-        HttpServletRequest request = (HttpServletRequest) servletRequest;
-        String requestedURI = request.getRequestURI();
-
-        String contextPath = request.getContextPath();
-        if (contextPath == null || ("/").equals(contextPath)) {
-               contextPath = "";
-        }
-        
-        StringTokenizer tokenizer = new 
StringTokenizer(requestedURI.substring(contextPath.length() + 1), "/");
-        String[] firstUriTokens = new String[2];
-        int i = 0;
-        while (tokenizer.hasMoreElements()) {
-            firstUriTokens[i] = tokenizer.nextToken();
-            i++;
-            if (i > 1) {
-                break;
-            }
-        }
-        if (i > 1 && firstUriTokens[0].equals("t")) {
-            if (requestedURI.startsWith("//")) {
-                requestedURI = requestedURI.replaceFirst("//", "/");
-            }
-            String path = requestedURI.substring(contextPath.length() + 
firstUriTokens[0].length() +
-                    firstUriTokens[1].length() + 2);
-
-            // need to validate the tenant exists
-            String tenantDomain = firstUriTokens[1];
-            boolean tenantExists = true;
-            boolean tenantActive = true;
-
-            if (tenantExistMap.get(tenantDomain) == null) {
-                // we have to call the service :(
-                RedirectorServletServiceClient client;
-                try {
-                    client = new RedirectorServletServiceClient(context, 
request.getSession());
-                } catch (Exception e) {
-                    String msg = "Error in constructing 
RedirectorServletServiceClient.";
-                    log.error(msg, e);
-                    throw new ServletException(msg, e);
-                }
-
-                try {
-                    String status = client.validateTenant(tenantDomain);
-                    tenantExists = 
!StratosConstants.INVALID_TENANT.equals(status);
-                    if (tenantExists && 
StratosConstants.ACTIVE_TENANT.equals(status)) {
-                        //tenantExists = true;
-                        tenantActive = true;
-                    }
-                } catch (Exception e) {
-                    String msg = "Error in checking the existing of the tenant 
domain: " +
-                            tenantDomain + ".";
-                    log.error(msg, e);
-                    throw new ServletException(msg, e);
-                }
-            }
-            // we have some backup stuff, if the tenant doesn't exists
-            if (tenantExists) {
-                if (tenantActive) {
-                    // we put this to hash only if the original tenant domain 
exist
-                    tenantExistMap.put(tenantDomain, true);
-                } else {
-                    String errorPage = contextPath +
-                            "/carbon/admin/error.jsp?The Requested tenant 
domain: " +
-                            tenantDomain + " is inactive.";
-                    RequestDispatcher requestDispatcher =
-                            request.getRequestDispatcher(errorPage);
-                    requestDispatcher.forward(request, servletResponse);
-                    return;
-                }
-            } else {
-                String errorPage = contextPath +
-                        "/carbon/admin/error.jsp?The Requested tenant domain: 
" +
-                        tenantDomain + " doesn't exist.";
-                RequestDispatcher requestDispatcher =
-                        request.getRequestDispatcher(errorPage);
-                requestDispatcher.forward(request, servletResponse);
-                return;
-            }
-            request.setAttribute(MultitenantConstants.TENANT_DOMAIN, 
tenantDomain);
-//            if (path.indexOf("admin/login.jsp") >= 0) {
-//                // we are going to apply the login.jsp filter + tenant 
specif filter both in here
-//                path = path.replaceAll("admin/login.jsp",
-//                        "tenant-login/login_ajaxprocessor.jsp");
-//                
request.setAttribute(StratosConstants.TENANT_SPECIFIC_URL_RESOLVED, "1");
-//            }
-            if (path.indexOf("/admin/index.jsp") >= 0) {
-                // we are going to apply the login.jsp filter + tenant specif 
filter both in here
-                path = path.replaceAll("/admin/index.jsp", 
"/tenant-dashboard/index.jsp");
-                
request.setAttribute(StratosConstants.TENANT_SPECIFIC_URL_RESOLVED, "1");
-            }
-            if (path.indexOf("admin/docs/userguide.html") >= 0) {
-                // we are going to apply the dasbhoard docs.jsp filter +
-                // tenant specif filter both in here
-                path = path.replaceAll("admin/docs/userguide.html",
-                        "tenant-dashboard/docs/userguide.html");
-                
request.setAttribute(StratosConstants.TENANT_SPECIFIC_URL_RESOLVED, "1");
-            }
-            if ("".equals(path) || "/".equals(path) || "/carbon".equals(path) 
||
-                    "/carbon/".equals(path) || "/carbon/admin".equals(path) ||
-                    "/carbon/admin/".equals(path)) {
-                // we have to redirect the root to the login page directly
-                path = contextPath + "/carbon/admin/login.jsp";             
-               ((HttpServletResponse) servletResponse).sendRedirect(path);
-                return;
-            }
-            RequestDispatcher requestDispatcher =
-                    request.getRequestDispatcher(path);            
-            requestDispatcher.forward(request, servletResponse);
-            return;
-        }
-    }
-
-    public void destroy() {
-        // nothing to destroy
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/ee5e9639/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/internal/RedirectorServletUIComponent.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/internal/RedirectorServletUIComponent.java
 
b/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/internal/RedirectorServletUIComponent.java
deleted file mode 100644
index c917923..0000000
--- 
a/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/internal/RedirectorServletUIComponent.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.redirector.servlet.ui.internal;
-
-import org.apache.stratos.redirector.servlet.ui.util.Util;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.osgi.service.component.ComponentContext;
-
-/**
- * @scr.component name="org.apache.stratosredirector.servlet.ui"
- * immediate="true"
- */
-public class RedirectorServletUIComponent {
-     private static Log log = 
LogFactory.getLog(RedirectorServletUIComponent.class);
-
-    protected void activate(ComponentContext context) {
-        try {
-            Util.domainRegisterServlet(context.getBundleContext());
-            log.debug("******* Multitenancy Redirector Servlet UI bundle is 
activated ******* ");
-        } catch (Exception e) {
-            log.error("******* Multitenancy Redirector Servlet UI bundle 
failed activating ****", e);
-        }
-    }
-
-    protected void deactivate(ComponentContext context) {
-        log.debug("******* Multitenancy Redirector Servlet UI bundle is 
deactivated ******* ");
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/ee5e9639/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/util/Util.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/util/Util.java
 
b/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/util/Util.java
deleted file mode 100644
index 954f29b..0000000
--- 
a/components/org.apache.stratos.redirector.servlet.ui/src/main/java/org/apache/stratos/redirector/servlet/ui/util/Util.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.redirector.servlet.ui.util;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceRegistration;
-import org.apache.stratos.redirector.servlet.ui.filters.AllPagesFilter;
-import org.wso2.carbon.utils.CarbonUtils;
-import org.wso2.carbon.utils.multitenancy.MultitenantConstants;
-
-import javax.servlet.Filter;
-import javax.servlet.Servlet;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import java.io.IOException;
-import java.util.Dictionary;
-import java.util.Hashtable;
-
-public class Util {
-
-    private static final Log log = LogFactory.getLog(Util.class);
-
-    private static ServiceRegistration redirectorServiceRegistration;
-
-    public static void domainRegisterServlet(BundleContext bundleContext) 
throws Exception {
-        if (!CarbonUtils.isRemoteRegistry()) {
-            HttpServlet reirectorServlet = new HttpServlet() {
-                // the redirector filter will forward the request before this 
servlet is hit
-                protected void doGet(HttpServletRequest request, 
HttpServletResponse response)
-                        throws ServletException, IOException {
-                }
-            };
-
-            Filter redirectorFilter = new AllPagesFilter();
-
-            Dictionary redirectorServletAttributes = new Hashtable(2);
-            Dictionary redirectorParams = new Hashtable(2);
-            redirectorParams.put("url-pattern", "/" + 
MultitenantConstants.TENANT_AWARE_URL_PREFIX);
-            redirectorParams.put("associated-filter", redirectorFilter);
-            redirectorParams.put("servlet-attributes", 
redirectorServletAttributes);
-
-            redirectorServiceRegistration = 
bundleContext.registerService(Servlet.class.getName(),
-                    reirectorServlet, redirectorParams);
-
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/ee5e9639/components/org.apache.stratos.redirector.servlet.ui/src/main/resources/RedirectorServletService.wsdl
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.redirector.servlet.ui/src/main/resources/RedirectorServletService.wsdl
 
b/components/org.apache.stratos.redirector.servlet.ui/src/main/resources/RedirectorServletService.wsdl
deleted file mode 100644
index 98645e1..0000000
--- 
a/components/org.apache.stratos.redirector.servlet.ui/src/main/resources/RedirectorServletService.wsdl
+++ /dev/null
@@ -1,121 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:ns1="http://org.apache.axis2/xsd"; 
xmlns:ns="http://services.servlet.redirector.carbon.wso2.org"; 
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"; 
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; 
targetNamespace="http://services.servlet.redirector.carbon.wso2.org";>
-    <wsdl:documentation>RedirectorServletService</wsdl:documentation>
-    <wsdl:types>
-        <xs:schema attributeFormDefault="qualified" 
elementFormDefault="qualified" 
targetNamespace="http://services.servlet.redirector.carbon.wso2.org";>
-            <xs:element name="validateTenantException">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" 
name="validateTenantException" nillable="true" type="ns:Exception" />
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-            <xs:complexType name="Exception">
-                <xs:sequence>
-                    <xs:element minOccurs="0" name="Message" nillable="true" 
type="xs:string" />
-                </xs:sequence>
-            </xs:complexType>
-            <xs:element name="validateTenant">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" name="tenantDomain" 
nillable="true" type="xs:string" />
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-            <xs:element name="validateTenantResponse">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" name="return" 
nillable="true" type="xs:string" />
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-        </xs:schema>
-    </wsdl:types>
-    <wsdl:message name="validateTenantRequest">
-        <wsdl:part name="parameters" element="ns:validateTenant" />
-    </wsdl:message>
-    <wsdl:message name="validateTenantResponse">
-        <wsdl:part name="parameters" element="ns:validateTenantResponse" />
-    </wsdl:message>
-    <wsdl:message name="validateTenantException">
-        <wsdl:part name="parameters" element="ns:validateTenantException" />
-    </wsdl:message>
-    <wsdl:portType name="RedirectorServletServicePortType">
-        <wsdl:operation name="validateTenant">
-            <wsdl:input message="ns:validateTenantRequest" 
wsaw:Action="urn:validateTenant" />
-            <wsdl:output message="ns:validateTenantResponse" 
wsaw:Action="urn:validateTenantResponse" />
-            <wsdl:fault message="ns:validateTenantException" 
name="validateTenantException" 
wsaw:Action="urn:validateTenantvalidateTenantException" />
-        </wsdl:operation>
-    </wsdl:portType>
-    <wsdl:binding name="RedirectorServletServiceSoap11Binding" 
type="ns:RedirectorServletServicePortType">
-        <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; 
style="document" />
-        <wsdl:operation name="validateTenant">
-            <soap:operation soapAction="urn:validateTenant" style="document" />
-            <wsdl:input>
-                <soap:body use="literal" />
-            </wsdl:input>
-            <wsdl:output>
-                <soap:body use="literal" />
-            </wsdl:output>
-            <wsdl:fault name="validateTenantException">
-                <soap:fault use="literal" name="validateTenantException" />
-            </wsdl:fault>
-        </wsdl:operation>
-    </wsdl:binding>
-    <wsdl:binding name="RedirectorServletServiceSoap12Binding" 
type="ns:RedirectorServletServicePortType">
-        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"; 
style="document" />
-        <wsdl:operation name="validateTenant">
-            <soap12:operation soapAction="urn:validateTenant" style="document" 
/>
-            <wsdl:input>
-                <soap12:body use="literal" />
-            </wsdl:input>
-            <wsdl:output>
-                <soap12:body use="literal" />
-            </wsdl:output>
-            <wsdl:fault name="validateTenantException">
-                <soap12:fault use="literal" name="validateTenantException" />
-            </wsdl:fault>
-        </wsdl:operation>
-    </wsdl:binding>
-    <wsdl:binding name="RedirectorServletServiceHttpBinding" 
type="ns:RedirectorServletServicePortType">
-        <http:binding verb="POST" />
-        <wsdl:operation name="validateTenant">
-            <http:operation location="validateTenant" />
-            <wsdl:input>
-                <mime:content type="text/xml" part="parameters" />
-            </wsdl:input>
-            <wsdl:output>
-                <mime:content type="text/xml" part="parameters" />
-            </wsdl:output>
-        </wsdl:operation>
-    </wsdl:binding>
-    <wsdl:service name="RedirectorServletService">
-        <wsdl:port name="RedirectorServletServiceHttpsSoap11Endpoint" 
binding="ns:RedirectorServletServiceSoap11Binding">
-            <soap:address 
location="https://10.100.0.161:9443/services/RedirectorServletService.RedirectorServletServiceHttpsSoap11Endpoint/";
 />
-        </wsdl:port>
-        <wsdl:port name="RedirectorServletServiceHttpsSoap12Endpoint" 
binding="ns:RedirectorServletServiceSoap12Binding">
-            <soap12:address 
location="https://10.100.0.161:9443/services/RedirectorServletService.RedirectorServletServiceHttpsSoap12Endpoint/";
 />
-        </wsdl:port>
-        <wsdl:port name="RedirectorServletServiceHttpsEndpoint" 
binding="ns:RedirectorServletServiceHttpBinding">
-            <http:address 
location="https://10.100.0.161:9443/services/RedirectorServletService.RedirectorServletServiceHttpsEndpoint/";
 />
-        </wsdl:port>
-    </wsdl:service>
-</wsdl:definitions>

http://git-wip-us.apache.org/repos/asf/stratos/blob/ee5e9639/components/org.apache.stratos.redirector.servlet/pom.xml
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.redirector.servlet/pom.xml 
b/components/org.apache.stratos.redirector.servlet/pom.xml
deleted file mode 100644
index 460ac41..0000000
--- a/components/org.apache.stratos.redirector.servlet/pom.xml
+++ /dev/null
@@ -1,99 +0,0 @@
-<!-- 
-  #  Licensed to the Apache Software Foundation (ASF) under one
-  #  or more contributor license agreements.  See the NOTICE file
-  #  distributed with this work for additional information
-  #  regarding copyright ownership.  The ASF licenses this file
-  #  to you under the Apache License, Version 2.0 (the
-  #  "License"); you may not use this file except in compliance
-  #  with the License.  You may obtain a copy of the License at
-  #  
-  #  http://www.apache.org/licenses/LICENSE-2.0
-  #  
-  #  Unless required by applicable law or agreed to in writing,
-  #  software distributed under the License is distributed on an
-  #  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  #  KIND, either express or implied.  See the License for the
-  #  specific language governing permissions and limitations
-  #  under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
-    <parent>
-        <groupId>org.apache.stratos</groupId>
-        <artifactId>stratos-components-parent</artifactId>
-        <version>4.1.0-SNAPSHOT</version>
-    </parent>
-
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>org.apache.stratos.redirector.servlet</artifactId>
-    <packaging>bundle</packaging>
-    <name>Apache Stratos - Tenant Specific URL redirector</name>
-
-    <build>
-
-        <plugins>
-            <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-scr-plugin</artifactId>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                
-                <extensions>true</extensions>
-                <configuration>
-                    <instructions>
-                        
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
-                        <Bundle-Name>${project.artifactId}</Bundle-Name>
-                        <Private-Package>
-                            org.apache.stratos.redirector.servlet.services.*,
-                            org.apache.stratos.redirector.servlet.internal.*,
-                        </Private-Package>
-                        <Export-Package>
-                            org.apache.stratos.redirector.servlet.util.*,
-                        </Export-Package>
-                        <Import-Package>
-                            org.wso2.carbon.registry.core.*;version=1.0.1,
-                            !javax.xml.namespace,
-                            javax.xml.namespace; version=0.0.0,
-                            
javax.servlet;version="${imp.pkg.version.javax.servlet}",
-                            
javax.servlet.http;version="${imp.pkg.version.javax.servlet}",
-                            org.apache.axiom.*; 
version="${axiom.osgi.version.range}",
-                            *;resolution:=optional
-                        </Import-Package>
-                    </instructions>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
-    <dependencies>
-
-        <dependency>
-            <groupId>org.apache.axis2.wso2</groupId>
-            <artifactId>axis2</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>log4j</groupId>
-            <artifactId>log4j</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.registry.core</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>commons-logging</groupId>
-            <artifactId>commons-logging</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.stratos</groupId>
-            <artifactId>org.apache.stratos.common</artifactId>
-           <version>${project.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.stratos</groupId>
-            <artifactId>org.apache.stratos.activation</artifactId>
-           <version>${project.version}</version>
-        </dependency>
-    </dependencies>
-
-</project>

http://git-wip-us.apache.org/repos/asf/stratos/blob/ee5e9639/components/org.apache.stratos.redirector.servlet/src/main/java/org/apache/stratos/redirector/servlet/internal/RedirectorServletServiceComponent.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.redirector.servlet/src/main/java/org/apache/stratos/redirector/servlet/internal/RedirectorServletServiceComponent.java
 
b/components/org.apache.stratos.redirector.servlet/src/main/java/org/apache/stratos/redirector/servlet/internal/RedirectorServletServiceComponent.java
deleted file mode 100644
index 22c9a04..0000000
--- 
a/components/org.apache.stratos.redirector.servlet/src/main/java/org/apache/stratos/redirector/servlet/internal/RedirectorServletServiceComponent.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.redirector.servlet.internal;
-
-import org.apache.stratos.redirector.servlet.util.Util;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.osgi.service.component.ComponentContext;
-import org.wso2.carbon.registry.core.service.RegistryService;
-import org.wso2.carbon.user.core.service.RealmService;
-import org.apache.stratos.activation.service.ActivationService;
-
-/**
- * @scr.component name="org.apache.stratos.redirector.servlet"
- * immediate="true"
- * @scr.reference name="registry.service"
- * interface="org.wso2.carbon.registry.core.service.RegistryService" 
cardinality="1..1"
- * policy="dynamic" bind="setRegistryService" unbind="unsetRegistryService"
- * @scr.reference name="user.realmservice.default" 
interface="org.wso2.carbon.user.core.service.RealmService"
- * cardinality="1..1" policy="dynamic" bind="setRealmService"
- * unbind="unsetRealmService"
- * @scr.reference name="activation.service" 
interface="org.apache.stratos.activation.service.ActivationService"
- * cardinality="0..1" policy="dynamic" bind="setActivationService"
- * unbind="unsetActivationService"
- */
-public class RedirectorServletServiceComponent {
-     private static Log log = 
LogFactory.getLog(RedirectorServletServiceComponent.class);
-
-    protected void activate(ComponentContext context) {
-        try {
-            log.debug("******* Multitenancy Redirector Servlet admin service 
bundle is activated ******* ");
-        } catch (Exception e) {
-            log.error("******* Multitenancy Redirector Servlet admin service 
bundle failed activating ****", e);
-        }
-    }
-
-    protected void deactivate(ComponentContext context) {
-        log.debug("******* Multitenancy Redirector Servlet admin service 
bundle is deactivated ******* ");
-    }
-
-    protected void setRegistryService(RegistryService registryService) {
-        Util.setRegistryService(registryService);
-    }
-
-    protected void unsetRegistryService(RegistryService registryService) {
-        Util.setRegistryService(null);
-    }
-
-    protected void setRealmService(RealmService realmService) {
-        Util.setRealmService(realmService);
-    }
-
-    protected void unsetRealmService(RealmService realmService) {
-        Util.setRealmService(null);
-    }
-
-    protected void setActivationService(ActivationService activationService) {
-        Util.setActivationService(activationService);
-    }
-
-    protected void unsetActivationService(ActivationService activationService) 
{
-        Util.setActivationService(null);
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/ee5e9639/components/org.apache.stratos.redirector.servlet/src/main/java/org/apache/stratos/redirector/servlet/services/RedirectorServletService.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.redirector.servlet/src/main/java/org/apache/stratos/redirector/servlet/services/RedirectorServletService.java
 
b/components/org.apache.stratos.redirector.servlet/src/main/java/org/apache/stratos/redirector/servlet/services/RedirectorServletService.java
deleted file mode 100644
index ed1d5cb..0000000
--- 
a/components/org.apache.stratos.redirector.servlet/src/main/java/org/apache/stratos/redirector/servlet/services/RedirectorServletService.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.redirector.servlet.services;
-
-import org.apache.stratos.redirector.servlet.util.Util;
-import org.wso2.carbon.user.core.tenant.TenantManager;
-import org.apache.stratos.common.constants.StratosConstants;
-
-public class RedirectorServletService {
-    public String validateTenant(String tenantDomain) throws Exception {
-        TenantManager tenantManager = Util.getTenantManager();
-        int tenantId = tenantManager.getTenantId(tenantDomain);
-        if (tenantId <= 0) {
-            return StratosConstants.INVALID_TENANT;
-        } else if (Util.getActivationService() != null &&
-                !Util.getActivationService().isActive(tenantId)) {
-            return StratosConstants.INACTIVE_TENANT;
-        }
-        return StratosConstants.ACTIVE_TENANT;
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/ee5e9639/components/org.apache.stratos.redirector.servlet/src/main/java/org/apache/stratos/redirector/servlet/util/Util.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.redirector.servlet/src/main/java/org/apache/stratos/redirector/servlet/util/Util.java
 
b/components/org.apache.stratos.redirector.servlet/src/main/java/org/apache/stratos/redirector/servlet/util/Util.java
deleted file mode 100644
index 3193c30..0000000
--- 
a/components/org.apache.stratos.redirector.servlet/src/main/java/org/apache/stratos/redirector/servlet/util/Util.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.redirector.servlet.util;
-
-import org.wso2.carbon.registry.core.service.RegistryService;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.wso2.carbon.user.core.service.RealmService;
-import org.wso2.carbon.user.core.tenant.TenantManager;
-import org.wso2.carbon.user.api.RealmConfiguration;
-import org.osgi.framework.ServiceRegistration;
-import org.apache.stratos.activation.service.ActivationService;
-
-import java.io.*;
-import java.util.*;
-
-public class Util {
-
-    private static final Log log = LogFactory.getLog(Util.class);
-
-    private static RegistryService registryService;
-    private static RealmService realmService;
-    private static ServiceRegistration redirectorServiceRegistration = null;
-    private static ActivationService activationService = null;
-
-    public static synchronized void setRegistryService(RegistryService 
service) {
-        if (registryService == null) {
-            registryService = service;
-        }
-    }
-    public static RegistryService getRegistryService() {
-        return registryService;
-    }
-
-    public static synchronized void setActivationService(ActivationService 
service) {
-        if (activationService == null) {
-            activationService = service;
-        }
-    }
-    public static ActivationService getActivationService() {
-        return activationService;
-    }
-
-    public static synchronized void setRealmService(RealmService service) {
-        if (realmService == null) {
-            realmService = service;
-        }
-    }
-
-    public static TenantManager getTenantManager() {
-        return realmService.getTenantManager();
-    }
-
-    public static RealmConfiguration getBootstrapRealmConfiguration() {
-        return realmService.getBootstrapRealmConfiguration();
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/ee5e9639/components/org.apache.stratos.redirector.servlet/src/main/resources/META-INF/services.xml
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.redirector.servlet/src/main/resources/META-INF/services.xml
 
b/components/org.apache.stratos.redirector.servlet/src/main/resources/META-INF/services.xml
deleted file mode 100644
index dd13fd4..0000000
--- 
a/components/org.apache.stratos.redirector.servlet/src/main/resources/META-INF/services.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~ http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<serviceGroup>
-    <service name="RedirectorServletService" scope="transportsession">
-        <transports>
-            <transport>https</transport>
-        </transports>
-        <parameter name="ServiceClass" locked="false">
-            
org.apache.stratos.redirector.servlet.services.RedirectorServletService
-        </parameter>
-    </service>
-    <parameter name="hiddenService" locked="true">true</parameter>
-</serviceGroup>

http://git-wip-us.apache.org/repos/asf/stratos/blob/ee5e9639/components/org.apache.stratos.register.ui/pom.xml
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.register.ui/pom.xml 
b/components/org.apache.stratos.register.ui/pom.xml
deleted file mode 100644
index c945c11..0000000
--- a/components/org.apache.stratos.register.ui/pom.xml
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- 
-  #  Licensed to the Apache Software Foundation (ASF) under one
-  #  or more contributor license agreements.  See the NOTICE file
-  #  distributed with this work for additional information
-  #  regarding copyright ownership.  The ASF licenses this file
-  #  to you under the Apache License, Version 2.0 (the
-  #  "License"); you may not use this file except in compliance
-  #  with the License.  You may obtain a copy of the License at
-  #  
-  #  http://www.apache.org/licenses/LICENSE-2.0
-  #  
-  #  Unless required by applicable law or agreed to in writing,
-  #  software distributed under the License is distributed on an
-  #  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  #  KIND, either express or implied.  See the License for the
-  #  specific language governing permissions and limitations
-  #  under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
-    <parent>
-        <groupId>org.apache.stratos</groupId>
-        <artifactId>stratos-components-parent</artifactId>
-        <version>4.1.0-SNAPSHOT</version>
-    </parent>
-
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>org.apache.stratos.register.ui</artifactId>
-    <packaging>bundle</packaging>
-    <name>Apache Stratos - Self Registration For New Tenant - User 
Interface</name>
-
-    <build>
-       <plugins>
-            <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                
-                <extensions>true</extensions>
-                <configuration>
-                    <instructions>
-                        
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
-                        <Bundle-Name>${project.artifactId}</Bundle-Name>
-                        <Export-Package>
-                            org.apache.stratos.register.ui.*,
-                        </Export-Package>
-                        <Import-Package>
-                            org.apache.stratos.tenant.register.stub.*; 
version=${project.version},
-                            
javax.servlet;version="${imp.pkg.version.javax.servlet}",
-                            
javax.servlet.http;version="${imp.pkg.version.javax.servlet}",
-                            !javax.xml.namespace,
-                            javax.xml.namespace; version=0.0.0,                
            
-                            org.apache.lucene.*,
-                            org.wso2.carbon.captcha.mgt.*,
-                            *;resolution:=optional
-                        </Import-Package>
-                        <Carbon-Component>UIBundle</Carbon-Component>
-                    </instructions>
-                </configuration>
-            </plugin>
-
-        </plugins>
-    </build>
-
-    <dependencies>
-
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.registry.common.ui</artifactId>
-           <version>${wso2carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.registry.core</artifactId>
-            <version>${wso2carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>commons-logging</groupId>
-            <artifactId>commons-logging</artifactId>
-           <version>1.1.1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.eclipse.equinox</groupId>
-            <artifactId>javax.servlet</artifactId>
-           <version>3.0.0.v201112011016</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.axis2.wso2</groupId>
-            <artifactId>axis2</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.ws.commons.axiom.wso2</groupId>
-            <artifactId>axiom</artifactId>
-           <version>1.2.11.wso2v2</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.ui</artifactId>
-           <version>${wso2carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.core</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.stratos</groupId>
-            <artifactId>org.apache.stratos.common</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.stratos</groupId>
-            <artifactId>org.apache.stratos.tenant.register.stub</artifactId>
-           <version>${project.version}</version>
-        </dependency>
-         <dependency>
-            <groupId>org.apache.stratos</groupId>
-            <artifactId>org.apache.stratos.common.stub</artifactId>
-           <version>${project.version}</version>
-        </dependency>
-        <dependency>
-          <groupId>org.json.wso2</groupId>
-          <artifactId>json</artifactId>
-         <version>1.0.0.wso2v1</version>
-        </dependency>
-        <dependency>
-           <groupId>org.wso2.carbon</groupId>
-           <artifactId>org.wso2.carbon.captcha.mgt</artifactId>
-            <version>${wso2carbon.version}</version>
-        </dependency>
-    </dependencies>
-</project>

http://git-wip-us.apache.org/repos/asf/stratos/blob/ee5e9639/components/org.apache.stratos.register.ui/src/main/java/org/apache/stratos/register/ui/clients/PackageInfoServiceClient.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.register.ui/src/main/java/org/apache/stratos/register/ui/clients/PackageInfoServiceClient.java
 
b/components/org.apache.stratos.register.ui/src/main/java/org/apache/stratos/register/ui/clients/PackageInfoServiceClient.java
deleted file mode 100644
index 2bd37a3..0000000
--- 
a/components/org.apache.stratos.register.ui/src/main/java/org/apache/stratos/register/ui/clients/PackageInfoServiceClient.java
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one 
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
- * KIND, either express or implied.  See the License for the 
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.register.ui.clients;
-
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.client.Options;
-import org.apache.axis2.client.ServiceClient;
-import org.apache.axis2.context.ConfigurationContext;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.json.JSONArray;
-import org.json.JSONObject;
-import org.wso2.carbon.registry.core.exceptions.RegistryException;
-import org.apache.stratos.common.packages.stub.PackageInfoServiceStub;
-import org.apache.stratos.common.packages.stub.PackageInfo;
-
-/**
- * PackageInfoService client
- */
-public class PackageInfoServiceClient {
-
-    private static Log log = LogFactory.getLog(PackageInfoServiceClient.class);
-
-    private PackageInfoServiceStub stub;
-    private String epr;
-
-    public PackageInfoServiceClient(
-            String cookie, String backendServerURL, ConfigurationContext 
configContext)
-            throws Exception {
-
-        epr = backendServerURL + "PackageInfoService";
-
-        try {
-            stub = new PackageInfoServiceStub(configContext, epr);
-
-            ServiceClient client = stub._getServiceClient();
-            Options option = client.getOptions();
-            option.setManageSession(true);
-            
option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, 
cookie);
-
-        } catch (AxisFault axisFault) {
-            String msg = "Failed to initiate PackageInfoService client. " + 
axisFault.getMessage();
-            log.error(msg, axisFault);
-            throw new RegistryException(msg, axisFault);
-        }
-    }
-
-    public PackageInfo[] getBillingPackages() throws Exception {
-
-        try {
-            return stub.getPackageInfos();
-        } catch (Exception e) {
-            String msg = "Failed to get package information: " + 
e.getMessage();
-            log.error(msg, e);
-            throw new Exception(msg, e);
-        }
-    }
-
-    public JSONArray getBillingPackagesJsonArray() throws Exception {
-
-        try {
-            PackageInfo[] packageInfoArray = stub.getPackageInfos();
-            JSONArray jsonPackageInfoArray = new JSONArray();
-            for (PackageInfo packageInfo : packageInfoArray) {
-                JSONObject packageInfoObj = new JSONObject();
-                packageInfoObj.put("name", packageInfo.getName());
-                //TODO https://wso2.org/jira/browse/STRATOS-1819
-                packageInfoObj.put("subscriptionCharge", 
packageInfo.getSubscriptionCharge());
-                jsonPackageInfoArray.put(packageInfoObj);
-            }
-            return jsonPackageInfoArray;
-        } catch (Exception e) {
-            String msg = "Failed to get package information: " + 
e.getMessage();
-            log.error(msg, e);
-            throw new Exception(msg, e);
-        }
-
-    }
-}

Reply via email to