getJavaMailDefaults(handlerCtx);
handlerCtx.setOutputValue("Properties", new HashMap());
return;
}
MailResourceConfig mailResource = AMXUtil.getDomainConfig().getMailResourceConfigMap().get(jndiName);
if (mailResource == null){
GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.NoSuchMailResource"));
return;
}
if(AMXUtil.isEE())
handlerCtx.setOutputValue("enabledString", TargetUtil.getEnabledStatus(mailResource, false));
else
handlerCtx.setOutputValue("enabled", TargetUtil.isResourceEnabled(mailResource, "server" ));
handlerCtx.setOutputValue("host", mailResource.getHost());
handlerCtx.setOutputValue("user", mailResource.getUser());
handlerCtx.setOutputValue("from", mailResource.getFrom());
handlerCtx.setOutputValue("description", mailResource.getDescription());
handlerCtx.setOutputValue("storeProtocol", mailResource.getStoreProtocol());
handlerCtx.setOutputValue("storeProtocolClass", mailResource.getStoreProtocolClass());
handlerCtx.setOutputValue("transportProtocol", mailResource.getTransportProtocol());
handlerCtx.setOutputValue("transportProtocolClass", mailResource.getTransportProtocolClass());
handlerCtx.setOutputValue("debug", mailResource.getDebug());
Map<String, String> props = mailResource.getProperties();
handlerCtx.setOutputValue("Properties", props);
}