Jsonapi json = factory.createHttpdTypeJsonapi();
httpd.setJsonapi(json);
json.setEnabled(m_jsonApiEnabled);
// <export>
ExportType export = factory.createExportType();
deployment.setExport(export);
// this is for old generation export test suite backward compatibility
export.setEnabled(m_elenabled && m_elloader != null && !m_elloader.trim().isEmpty());
ServerExportEnum exportTarget = ServerExportEnum.fromValue(m_elExportTarget.toLowerCase());
export.setTarget(exportTarget);
if((m_elConfig != null) && (m_elConfig.size() > 0)) {
ExportConfigurationType exportConfig = factory.createExportConfigurationType();
List<PropertyType> configProperties = exportConfig.getProperty();
for( Object nameObj: m_elConfig.keySet()) {
String name = String.class.cast(nameObj);
PropertyType prop = factory.createPropertyType();
prop.setName(name);
prop.setValue(m_elConfig.getProperty(name));
configProperties.add(prop);
}
export.setConfiguration(exportConfig);
}
// Have some yummy boilerplate!
File file = File.createTempFile("myAppDeployment", ".tmp");
JAXBContext context = JAXBContext.newInstance(DeploymentType.class);