use of org.glassfish.webservices.WebServicesContainer in project Payara by payara.
the class ListWebServicesCommand method execute.
@Override
public void execute(AdminCommandContext context) {
ActionReport report = context.getActionReport();
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);
}
}
Aggregations