/** * <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); }
/** * <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); }
/** * <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); }
/** * <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> * Parses the ORB {@code initializers} 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 ORB initializers configuration. * @throws javax.xml.stream.XMLStreamException * if an error occurs while parsing the XML. */ private void parseORBInitializersConfig(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException { // parse the initializers config attributes. EnumSet<Attribute> attributes = EnumSet.of(Attribute.ORB_INIT_SECURITY, Attribute.ORB_INIT_TRANSACTIONS); this.parseAttributes(reader, node, attributes, null); // the initializers element doesn't have child elements. requireNoContent(reader); //if security="on" change it to security="identity" if(node.has(SECURITY) && node.get(SECURITY).asString().equals(JacORBSubsystemConstants.ON)) { node.get(SECURITY).set(SecurityAllowedValues.IDENTITY.toString()); } }
this.parseAttributes(reader, node, expectedAttributes, null); this.parseAttributes(reader, node, attributes, null);
this.parseAttributes(reader, node, expectedAttributes, null);
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);
/** * <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); }
/** * <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); }
/** * <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); }
/** * <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> * Parses the ORB {@code initializers} 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 ORB initializers configuration. * @throws javax.xml.stream.XMLStreamException * if an error occurs while parsing the XML. */ private void parseORBInitializersConfig(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException { // parse the initializers config attributes. EnumSet<Attribute> attributes = EnumSet.of(Attribute.ORB_INIT_SECURITY, Attribute.ORB_INIT_TRANSACTIONS); this.parseAttributes(reader, node, attributes, null); // the initializers element doesn't have child elements. requireNoContent(reader); //if security="on" change it to security="identity" if(node.has(SECURITY) && node.get(SECURITY).asString().equals(JacORBSubsystemConstants.ON)) { node.get(SECURITY).set(SecurityAllowedValues.IDENTITY.toString()); } }
this.parseAttributes(reader, node, expectedAttributes, null); this.parseAttributes(reader, node, attributes, null);
this.parseAttributes(reader, node, expectedAttributes, null);
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);