report.setActionExitCode(ActionReport.ExitCode.SUCCESS);
WebServicesContainer container = containerProvider.get();
if (container == null) {
return;
}
WebServicesDeploymentMBean bean = container.getDeploymentBean();
if (appName != null && moduleName != null && endpointName != null) {
Map<String, Map<String, Map<String, DeployedEndpointData>>> endpoints =
bean.getEndpoint(appName, moduleName, endpointName);
fillEndpoints(report, endpoints);
} else if (appName != null && moduleName != null) {
Map<String, Map<String, Map<String, DeployedEndpointData>>> endpoints =
bean.getEndpoints(appName, moduleName);
fillEndpoints(report, endpoints);
} else if (appName != null) {
Map<String, Map<String, Map<String, DeployedEndpointData>>> endpoints =
bean.getEndpoints(appName);
fillEndpoints(report, endpoints);
} else {
Map<String, Map<String, Map<String, DeployedEndpointData>>> endpoints = bean.getEndpoints();
fillEndpoints(report, endpoints);
}
}