private boolean writeStaticResources(XMLExtendedStreamWriter writer, ModelNode config) throws XMLStreamException { boolean startWritten = writeStaticResourceAttribute(writer, Attribute.LISTINGS.getLocalName(), config, false); startWritten = writeStaticResourceAttribute( writer, Attribute.SENDFILE.getLocalName(), config, startWritten) || startWritten; startWritten = writeStaticResourceAttribute( writer, Attribute.FILE_ENCONDING.getLocalName(), config, startWritten) || startWritten; startWritten = writeStaticResourceAttribute( writer, Attribute.READ_ONLY.getLocalName(), config, startWritten) || startWritten; startWritten = writeStaticResourceAttribute(writer, Attribute.WEBDAV.getLocalName(), config, startWritten) || startWritten; startWritten = writeStaticResourceAttribute(writer, Attribute.SECRET.getLocalName(), config, startWritten) || startWritten; startWritten = writeStaticResourceAttribute( writer, Attribute.MAX_DEPTH.getLocalName(), config, startWritten) || startWritten; startWritten = writeStaticResourceAttribute( writer, Attribute.DISABLED.getLocalName(), config, startWritten) || startWritten; if (startWritten) { writer.writeEndElement(); } return startWritten; }
private boolean writeJSPConfiguration( XMLExtendedStreamWriter writer, ModelNode jsp, boolean containerConfigStartWritten) throws XMLStreamException { boolean startWritten = writeJspConfigAttribute( writer, Attribute.DEVELOPMENT.getLocalName(), jsp, false, containerConfigStartWritten); startWritten = writeJspConfigAttribute( writer, Attribute.KEEP_GENERATED.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.TRIM_SPACES.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.TAG_POOLING.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.MAPPED_FILE.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.CHECK_INTERVAL.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.MODIFIFICATION_TEST_INTERVAL.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.RECOMPILE_ON_FAIL.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.SMAP.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.DUMP_SMAP.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.GENERATE_STRINGS_AS_CHAR_ARRAYS.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.ERROR_ON_USE_BEAN_INVALID_CLASS_ATTRIBUTE.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.SCRATCH_DIR.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.SOURCE_VM.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.TARGET_VM.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.JAVA_ENCODING.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.X_POWERED_BY.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.DISPLAY_SOURCE_FRAGMENT.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; startWritten = writeJspConfigAttribute( writer, Attribute.DISABLED.getLocalName(), jsp, startWritten, containerConfigStartWritten) || startWritten; if (startWritten) { writer.writeEndElement(); } return startWritten; }