/** * <p> * Writes the {@code security} section of the JacORB subsystem configuration using the contents of the provided * {@code ModelNode}. * </p> * * @param writer the {@code XMLExtendedStreamWriter} used to write the configuration XML. * @param node the {@code ModelNode} that contains the security configuration properties. * @throws XMLStreamException if an error occurs while writing the security configuration. */ private void writeSecurityConfig(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException { boolean writeSecurity = this.isWritable(node, JacORBSubsystemDefinitions.SECURITY_ATTRIBUTES); if (writeSecurity) { writer.writeEmptyElement(SECURITY); this.writeAttributes(writer, node, JacORBSubsystemDefinitions.SECURITY_ATTRIBUTES); } }
/** * <p> * Writes the {@code interop} section of the JacORB subsystem configuration using the contents of the provided * {@code ModelNode}. * </p> * * @param writer the {@code XMLExtendedStreamWriter} used to write the configuration XML. * @param node the {@code ModelNode} that contains the interoperability configuration properties. * @throws XMLStreamException if an error occurs while writing the interop configuration. */ private void writeInteropConfig(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException { boolean writeInterop = this.isWritable(node, JacORBSubsystemDefinitions.INTEROP_ATTRIBUTES); if (writeInterop) { writer.writeEmptyElement(JacORBSubsystemConstants.INTEROP); this.writeAttributes(writer, node, JacORBSubsystemDefinitions.INTEROP_ATTRIBUTES); } }
/** * <p> * Writes the {@code naming} section of the JacORB subsystem configuration using the contents of the provided * {@code ModelNode}. * </p> * * @param writer the {@code XMLExtendedStreamWriter} used to write the configuration XML. * @param node the {@code ModelNode} that contains the naming configuration properties. * @throws XMLStreamException if an error occurs while writing the interop configuration. */ private void writeNamingConfig(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException { boolean writeNaming = this.isWritable(node, JacORBSubsystemDefinitions.NAMING_ATTRIBUTES); if (writeNaming) { writer.writeEmptyElement(JacORBSubsystemConstants.NAMING); this.writeAttributes(writer, node, JacORBSubsystemDefinitions.NAMING_ATTRIBUTES); } }
boolean writeORB = this.isWritable(node, JacORBSubsystemDefinitions.ORB_ATTRIBUTES); boolean writeORBConnection = this.isWritable(node, JacORBSubsystemDefinitions.ORB_CONN_ATTRIBUTES); boolean writeORBInitializer = this.isWritable(node, JacORBSubsystemDefinitions.ORB_INIT_ATTRIBUTES);
/** * <p> * Writes the {@code poa} section of the JacORB subsystem configuration using the contents of the provided * {@code ModelNode}. * </p> * * @param writer the {@code XMLExtendedStreamWriter} used to write the configuration XML. * @param node the {@code ModelNode} that might contain POA configuration properties. * @throws XMLStreamException if an error occurs while writing the POA configuration. */ private void writePOAConfig(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException { boolean writePOA = this.isWritable(node, JacORBSubsystemDefinitions.POA_ATTRIBUTES); boolean writePOARP = this.isWritable(node, JacORBSubsystemDefinitions.POA_RP_ATTRIBUTES); // if no request processor properties are available, just write the poa properties (if any) in an empty element. if (!writePOARP) { if (writePOA) { writer.writeEmptyElement(JacORBSubsystemConstants.POA); this.writeAttributes(writer, node, JacORBSubsystemDefinitions.POA_ATTRIBUTES); } } // otherwise write the poa element with the appropriate sub-elements. else { writer.writeStartElement(JacORBSubsystemConstants.POA); this.writeAttributes(writer, node, JacORBSubsystemDefinitions.POA_ATTRIBUTES); writer.writeEmptyElement(JacORBSubsystemConstants.POA_RP); this.writeAttributes(writer, node, JacORBSubsystemDefinitions.POA_RP_ATTRIBUTES); writer.writeEndElement(); } }
/** * <p> * Writes the {@code interop} section of the JacORB subsystem configuration using the contents of the provided * {@code ModelNode}. * </p> * * @param writer the {@code XMLExtendedStreamWriter} used to write the configuration XML. * @param node the {@code ModelNode} that contains the interoperability configuration properties. * @throws XMLStreamException if an error occurs while writing the interop configuration. */ private void writeInteropConfig(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException { boolean writeInterop = this.isWritable(node, JacORBSubsystemDefinitions.INTEROP_ATTRIBUTES); if (writeInterop) { writer.writeEmptyElement(JacORBSubsystemConstants.INTEROP); this.writeAttributes(writer, node, JacORBSubsystemDefinitions.INTEROP_ATTRIBUTES); } }
/** * <p> * Writes the {@code naming} section of the JacORB subsystem configuration using the contents of the provided * {@code ModelNode}. * </p> * * @param writer the {@code XMLExtendedStreamWriter} used to write the configuration XML. * @param node the {@code ModelNode} that contains the naming configuration properties. * @throws XMLStreamException if an error occurs while writing the interop configuration. */ private void writeNamingConfig(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException { boolean writeNaming = this.isWritable(node, JacORBSubsystemDefinitions.NAMING_ATTRIBUTES); if (writeNaming) { writer.writeEmptyElement(JacORBSubsystemConstants.NAMING); this.writeAttributes(writer, node, JacORBSubsystemDefinitions.NAMING_ATTRIBUTES); } }
/** * <p> * Writes the {@code security} section of the JacORB subsystem configuration using the contents of the provided * {@code ModelNode}. * </p> * * @param writer the {@code XMLExtendedStreamWriter} used to write the configuration XML. * @param node the {@code ModelNode} that contains the security configuration properties. * @throws XMLStreamException if an error occurs while writing the security configuration. */ private void writeSecurityConfig(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException { boolean writeSecurity = this.isWritable(node, JacORBSubsystemDefinitions.SECURITY_ATTRIBUTES); if (writeSecurity) { writer.writeEmptyElement(SECURITY); this.writeAttributes(writer, node, JacORBSubsystemDefinitions.SECURITY_ATTRIBUTES); } }
boolean writeORB = this.isWritable(node, JacORBSubsystemDefinitions.ORB_ATTRIBUTES); boolean writeORBConnection = this.isWritable(node, JacORBSubsystemDefinitions.ORB_CONN_ATTRIBUTES); boolean writeORBInitializer = this.isWritable(node, JacORBSubsystemDefinitions.ORB_INIT_ATTRIBUTES);
/** * <p> * Writes the {@code poa} section of the JacORB subsystem configuration using the contents of the provided * {@code ModelNode}. * </p> * * @param writer the {@code XMLExtendedStreamWriter} used to write the configuration XML. * @param node the {@code ModelNode} that might contain POA configuration properties. * @throws XMLStreamException if an error occurs while writing the POA configuration. */ private void writePOAConfig(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException { boolean writePOA = this.isWritable(node, JacORBSubsystemDefinitions.POA_ATTRIBUTES); boolean writePOARP = this.isWritable(node, JacORBSubsystemDefinitions.POA_RP_ATTRIBUTES); // if no request processor properties are available, just write the poa properties (if any) in an empty element. if (!writePOARP) { if (writePOA) { writer.writeEmptyElement(JacORBSubsystemConstants.POA); this.writeAttributes(writer, node, JacORBSubsystemDefinitions.POA_ATTRIBUTES); } } // otherwise write the poa element with the appropriate sub-elements. else { writer.writeStartElement(JacORBSubsystemConstants.POA); this.writeAttributes(writer, node, JacORBSubsystemDefinitions.POA_ATTRIBUTES); writer.writeEmptyElement(JacORBSubsystemConstants.POA_RP); this.writeAttributes(writer, node, JacORBSubsystemDefinitions.POA_RP_ATTRIBUTES); writer.writeEndElement(); } }