/** * <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); } }
Attribute.ORB_GIOP_MINOR_VERSION, Attribute.ORB_USE_BOM, Attribute.ORB_USE_IMR, Attribute.ORB_CACHE_POA_NAMES, Attribute.ORB_CACHE_TYPECODES); this.parseAttributes(reader, node, expectedAttributes, null); this.parseORBConnectionConfig(reader, node); break; this.parseNamingConfig(reader, node); break;
this.parseORBConfig_1_0(reader, node); break; this.parsePOAConfig(namespace, reader, node); break; this.parseInteropConfig(reader, node); break; this.parseSecurityConfig_1_0(reader, node); break; this.parseGenericProperty_1_0(reader, propertiesNode); break; this.parseORBInitializersConfig_1_0(reader, node); break;
switch (element) { case ORB: { this.parseORBConfig(namespace, reader, nodes.get(0)); break; this.parsePOAConfig(namespace, reader, node); break; this.parseNamingConfig(reader, node); break; this.parseInteropConfig(reader, node); break; this.parseSecurityConfig(reader, node); break; this.parsePropertiesConfig(namespace, reader, node); break;
this.parseAttributes(reader, node, expectedAttributes, null); this.parseORBConnectionConfig(reader, node); break; this.parseORBInitializersConfig(reader, node); break;
/** * <p> * Parses the {@code naming} section of the JacORB subsystem configuration. * </p> * * @param reader the {@code XMLExtendedStreamReader} used to read the configuration XML. * @param node the {@code ModelNode} that will hold the parsed interoperability configuration. * @throws javax.xml.stream.XMLStreamException * if an error occurs while parsing the XML. */ private void parseNamingConfig(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException { // parse all naming attributes. EnumSet<Attribute> expectedAttributes = EnumSet.of(Attribute.NAMING_ROOT_CONTEXT, Attribute.NAMING_EXPORT_CORBALOC); this.parseAttributes(reader, node, expectedAttributes, null); // the naming element doesn't have child elements. requireNoContent(reader); }
case PROPERTY: { this.parseGenericProperty(reader, node.get(JacORBSubsystemConstants.PROPERTIES)); break;
this.parseORBConfig(namespace, reader, node); break; this.parsePOAConfig(namespace, reader, node); break; this.parseNamingConfig(reader, node); break; this.parseInteropConfig(reader, node); break; this.parseSecurityConfig(reader, node); break; this.parsePropertiesConfig(namespace, reader, node); break;
this.parseAttributes(reader, node, expectedAttributes, null); this.parseORBConnectionConfig(reader, node); break; this.parseORBInitializersConfig(reader, node); break;
/** * <p> * Parses the {@code security} section of the JacORB subsystem configuration according to the XSD version 1.1 or higher. * </p> * * @param reader the {@code XMLExtendedStreamReader} used to read the configuration XML. * @param node the {@code ModelNode} that will hold the parsed security configuration. * @throws javax.xml.stream.XMLStreamException * if an error occurs while parsing the XML. */ private void parseSecurityConfig(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException { // parse all security attributes. EnumSet<Attribute> expectedAttributes = EnumSet.of(Attribute.SECURITY_SUPPORT_SSL, Attribute.SECURITY_SECURITY_DOMAIN, Attribute.SECURITY_ADD_COMPONENT_INTERCEPTOR, Attribute.SECURITY_CLIENT_SUPPORTS, Attribute.SECURITY_CLIENT_REQUIRES, Attribute.SECURITY_SERVER_SUPPORTS, Attribute.SECURITY_SERVER_REQUIRES); this.parseAttributes(reader, node, expectedAttributes, null); // the security element doesn't have child elements. requireNoContent(reader); }
case PROPERTY: { this.parseGenericProperty(reader, node.get(JacORBSubsystemConstants.PROPERTIES)); break;
switch (element) { case ORB: { this.parseORBConfig(namespace, reader, nodes.get(0)); break; this.parsePOAConfig(namespace, reader, node); break; this.parseNamingConfig(reader, node); break; this.parseInteropConfig(reader, node); break; this.parseSecurityConfig(reader, node); break; this.parsePropertiesConfig(namespace, reader, node); break;
this.parseORBConfig_1_0(reader, node); break; this.parsePOAConfig(namespace, reader, node); break; this.parseInteropConfig(reader, node); break; this.parseSecurityConfig_1_0(reader, node); break; this.parseGenericProperty_1_0(reader, propertiesNode); break; this.parseORBInitializersConfig_1_0(reader, node); break;
/** * <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); } }
Attribute.ORB_GIOP_MINOR_VERSION, Attribute.ORB_USE_BOM, Attribute.ORB_USE_IMR, Attribute.ORB_CACHE_POA_NAMES, Attribute.ORB_CACHE_TYPECODES); this.parseAttributes(reader, node, expectedAttributes, null); this.parseORBConnectionConfig(reader, node); break; this.parseNamingConfig(reader, node); break;
/** * <p> * Parses the {@code interop} section of the JacORB subsystem configuration. * </p> * * @param reader the {@code XMLExtendedStreamReader} used to read the configuration XML. * @param node the {@code ModelNode} that will hold the parsed interoperability configuration. * @throws javax.xml.stream.XMLStreamException * if an error occurs while parsing the XML. */ private void parseInteropConfig(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException { // parse all interop attributes. EnumSet<Attribute> expectedAttributes = EnumSet.of(Attribute.INTEROP_SUN, Attribute.INTEROP_COMET, Attribute.INTEROP_IONA, Attribute.INTEROP_CHUNK_RMI_VALUETYPES, Attribute.INTEROP_LAX_BOOLEAN_ENCODING, Attribute.INTEROP_INDIRECTION_ENCODING_DISABLE, Attribute.INTEROP_STRICT_CHECK_ON_TC_CREATION); this.parseAttributes(reader, node, expectedAttributes, null); // the interop element doesn't have child elements. requireNoContent(reader); }
this.parseORBConfig(namespace, reader, node); break; this.parsePOAConfig(namespace, reader, node); break; this.parseNamingConfig(reader, node); break; this.parseInteropConfig(reader, node); break; this.parseSecurityConfig(reader, node); break; this.parsePropertiesConfig(namespace, reader, node); break;
/** * <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> * Parses the ORB {@code connection} section of the JacORB subsystem configuration. * </p> * * @param reader the {@code XMLExtendedStreamReader} used to read the configuration XML. * @param node the {@code ModelNode} that will hold the parsed ORB connection configuration. * @throws javax.xml.stream.XMLStreamException * if an error occurs while parsing the XML. */ private void parseORBConnectionConfig(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException { // parse the orb connection config attributes. EnumSet<Attribute> attributes = EnumSet.of(Attribute.ORB_CONN_RETRIES, Attribute.ORB_CONN_RETRY_INTERVAL, Attribute.ORB_CONN_CLIENT_TIMEOUT, Attribute.ORB_CONN_SERVER_TIMEOUT, Attribute.ORB_CONN_MAX_SERVER_CONNECTIONS, Attribute.ORB_CONN_MAX_MANAGED_BUF_SIZE, Attribute.ORB_CONN_OUTBUF_SIZE, Attribute.ORB_CONN_OUTBUF_CACHE_TIMEOUT); this.parseAttributes(reader, node, attributes, null); // the connection sub-element doesn't have child elements. requireNoContent(reader); }
/** * <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(); } }