cloudstack/server/src/com/cloud
Will Stevens 08f2ec5044 Merge pull request #1263 from rafaelweingartner/lrg-cs-hackday-018
Removed unused code from com.cloud.api.ApiServer**Removed \_ from variables names**: private variables with \_ at the beginning is common in C++ but not in Java.

**Removed unused code from ApiServer:**
- com.cloud.api.ApiServer.getPluggableServices(): unused method;
- com.cloud.api.ApiServer.getApiAccessCheckers(): unused method;

**Methods and variables access level reviewed:**
- com.cloud.api.ApiServer.handleAsyncJobPublishEvent(String, String ,Object): this method was private but the annotation @MessageHandler requests public methods, as can be seen in org.apache.cloudstack.framework.messagebus.MessageDispatcher.buildHandlerMethodCache(Class\<?\>), which searches methods with the @MessageHandler annotation and changes
it to be accessible (setAccessible(true)). Thus, there is no reason for handleAsyncJobPublishEvent be a private method and lead some other dev to wrong conclusions about the use of the method;
- Global variables and methods called just by this class (ApiServer) were changed to private.

**Changed variables and methods from static to non-static (if possible):** as some variables/methods are used just by one object of this class, instantiated by Spring, they were changed to non-static.

With that, calls from com.cloud.api.ApiServlet.ApiServlet() that used static methods from ApiServer, were changed from ApiServer.\<staticMethodName\> to \_apiServer.\<methodName\> that refers to the org.apache.cloudstack.api.ApiServerService interface. Thus, methods com.cloud.api.ApiServer.getJSONContentType() and com.cloud.api.ApiServer.isSecureSessionCookieEnabled() had to be added in the interface (org.apache.cloudstack.api.ApiServerService, interface implemented by class ApiServer).

* pr/1263:
  The goal of this PR is to review com.cloud.api.ApiServer class, with the following actions:

Signed-off-by: Will Stevens <williamstevens@gmail.com>
2016-04-18 08:34:53 -04:00
..
account Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
acl Merge release branch 4.6 to master 2015-12-03 20:42:41 +01:00
agent/manager Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
alert Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
api Merge pull request #1263 from rafaelweingartner/lrg-cs-hackday-018 2016-04-18 08:34:53 -04:00
async Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
capacity CLOUDSTACK-9333: Exclude clusters for OVF operations 2016-04-05 08:21:36 -07:00
configuration Merge release branch 4.6 to master 2015-12-12 22:29:19 +01:00
consoleproxy Add Javadoc to AgentBasedStandaloneConsoleProxyManager 2015-12-04 10:36:16 -02:00
dc Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
deploy Removed PlannerBase empty class 2015-12-01 11:45:23 -02:00
event Merge release branch 4.6 to master 2015-11-28 15:12:49 +01:00
ha Merge pull request #834 from maneesha-p/CLOUDSTACK-8866 2015-11-30 07:45:55 +01:00
hypervisor Merge branch '4.6' 2015-12-07 12:44:07 +05:30
metadata Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
network Merge pull request #1287 from DaanHoogland/securityrules-cleanup 2016-04-11 21:49:57 +05:30
projects Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
resource Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
resourcelimit Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
server Revert "Merge pull request #780 from maneesha-p/pull-19" due code quality issues and lack of CI results. 2016-03-21 17:38:04 -04:00
servlet CLOUDSTACK-8656: reporting ignored exceptions in server 2015-08-04 15:50:35 +02:00
storage VmDetailConstants "ROOK_DISK_CONTROLLER" to "ROOT_DISK_CONTROLLER" 2016-03-09 22:43:55 -03:00
tags Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
template Add ability to download templates in Swift 2016-04-05 16:40:00 -04:00
test findbugs: use a prepared statement as prepared statement 2015-06-19 23:26:00 +02:00
usage Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
user CLOUDSTACK-8592: Implement Quota service 2015-12-07 23:02:48 +05:30
uuididentity CLOUDSTACK-6785: changed async job param injectedjobid to customjobid and check for unique/uuid 2014-05-27 15:23:12 -06:00
vm VmDetailConstants "ROOK_DISK_CONTROLLER" to "ROOT_DISK_CONTROLLER" 2016-03-09 22:43:55 -03:00