Attribute.ORB_CACHE_POA_NAMES, Attribute.ORB_CACHE_TYPECODES); if (namespace.ordinal() >= Namespace.JacORB_1_2.ordinal()) { expectedAttributes.add(Attribute.ORB_SOCKET_BINDING); expectedAttributes.add(Attribute.ORB_SSL_SOCKET_BINDING); if (namespace.ordinal() >= Namespace.JacORB_2_0.ordinal()) { expectedAttributes.add(Attribute.ORB_PERSISTENT_SERVER_ID); while (reader.hasNext() && reader.nextTag() != END_ELEMENT) { if (namespace != Namespace.forUri(reader.getNamespaceURI())) throw unexpectedElement(reader);
@Override public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException { context.startSubsystemElement(Namespace.CURRENT.getUriString(), false); ModelNode node = context.getModelNode(); // write the orb configuration section if there are any orb properties to be written. this.writeORBConfig(writer, node); // write the poa configuration section if there are any poa properties to be written. this.writePOAConfig(writer, node); // write the naming configuration section if there are any naming properties to be written. this.writeNamingConfig(writer, node); // write the interop configuration section if there are any interop properties to be written. this.writeInteropConfig(writer, node); // write the security configuration section if there are any security properties to be written. this.writeSecurityConfig(writer, node); // write all defined generic properties. String properties = JacORBSubsystemConstants.PROPERTIES; if (node.hasDefined(properties)) { this.writeGenericProperties(writer, node.get(properties)); } // write the ior-settings configuration section if there are any security properties to be written. if (node.hasDefined(JacORBSubsystemConstants.IOR_SETTINGS)) IORSettingsParser.INSTANCE.writeContent(writer, node.get(JacORBSubsystemConstants.IOR_SETTINGS, JacORBSubsystemConstants.DEFAULT)); writer.writeEndElement(); // End of subsystem element }
Attribute.ORB_CACHE_POA_NAMES, Attribute.ORB_CACHE_TYPECODES); if (namespace.ordinal() >= Namespace.JacORB_1_2.ordinal()) { expectedAttributes.add(Attribute.ORB_SOCKET_BINDING); expectedAttributes.add(Attribute.ORB_SSL_SOCKET_BINDING); if (namespace.ordinal() >= Namespace.JacORB_2_0.ordinal()) { expectedAttributes.add(Attribute.ORB_PERSISTENT_SERVER_ID); while (reader.hasNext() && reader.nextTag() != END_ELEMENT) { if (namespace != Namespace.forUri(reader.getNamespaceURI())) throw unexpectedElement(reader);
while (reader.hasNext() && reader.nextTag() != END_ELEMENT) { if (namespace != Namespace.forUri(reader.getNamespaceURI())) throw unexpectedElement(reader);
while (reader.hasNext() && reader.nextTag() != END_ELEMENT) { if (namespace != Namespace.forUri(reader.getNamespaceURI())) throw unexpectedElement(reader);
while (reader.hasNext() && reader.nextTag() != END_ELEMENT) { if (Namespace.JacORB_1_0 != Namespace.forUri(reader.getNamespaceURI())) throw unexpectedElement(reader);
while (reader.hasNext() && reader.nextTag() != END_ELEMENT) { if (Namespace.JacORB_1_0 != Namespace.forUri(reader.getNamespaceURI())) throw unexpectedElement(reader);
while (reader.hasNext() && reader.nextTag() != END_ELEMENT) { if (namespace != Namespace.forUri(reader.getNamespaceURI())) throw unexpectedElement(reader);
if (namespace != Namespace.forUri(reader.getNamespaceURI())) throw unexpectedElement(reader);
nodes.add(subsystem); Namespace readerNS = Namespace.forUri(reader.getNamespaceURI()); switch (readerNS) { case JacORB_1_0: {
@Override public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException { context.startSubsystemElement(Namespace.CURRENT.getUriString(), false); ModelNode node = context.getModelNode(); // write the orb configuration section if there are any orb properties to be written. this.writeORBConfig(writer, node); // write the poa configuration section if there are any poa properties to be written. this.writePOAConfig(writer, node); // write the naming configuration section if there are any naming properties to be written. this.writeNamingConfig(writer, node); // write the interop configuration section if there are any interop properties to be written. this.writeInteropConfig(writer, node); // write the security configuration section if there are any security properties to be written. this.writeSecurityConfig(writer, node); // write all defined generic properties. String properties = JacORBSubsystemConstants.PROPERTIES; if (node.hasDefined(properties)) { this.writeGenericProperties(writer, node.get(properties)); } // write the ior-settings configuration section if there are any security properties to be written. if (node.hasDefined(JacORBSubsystemConstants.IOR_SETTINGS)) IORSettingsParser.INSTANCE.writeContent(writer, node.get(JacORBSubsystemConstants.IOR_SETTINGS, JacORBSubsystemConstants.DEFAULT)); writer.writeEndElement(); // End of subsystem element }
@Override protected void initializeLegacyParsers(ExtensionParsingContext context) { context.setSubsystemXmlMapping(SUBSYSTEM_NAME, JacORBSubsystemParser.Namespace.JacORB_1_0.getUriString(), () -> PARSER); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, JacORBSubsystemParser.Namespace.JacORB_1_1.getUriString(), () -> PARSER); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, JacORBSubsystemParser.Namespace.JacORB_1_2.getUriString(), () -> PARSER); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, JacORBSubsystemParser.Namespace.JacORB_1_3.getUriString(), () -> PARSER); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, JacORBSubsystemParser.Namespace.JacORB_1_4.getUriString(), () -> PARSER); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, JacORBSubsystemParser.Namespace.JacORB_2_0.getUriString(), () -> PARSER); }
while (reader.hasNext() && reader.nextTag() != END_ELEMENT) { if (Namespace.JacORB_1_0 != Namespace.forUri(reader.getNamespaceURI())) throw unexpectedElement(reader);
while (reader.hasNext() && reader.nextTag() != END_ELEMENT) { if (Namespace.JacORB_1_0 != Namespace.forUri(reader.getNamespaceURI())) throw unexpectedElement(reader);
while (reader.hasNext() && reader.nextTag() != END_ELEMENT) { if (namespace != Namespace.forUri(reader.getNamespaceURI())) throw unexpectedElement(reader);
while (reader.hasNext() && reader.nextTag() != END_ELEMENT) { if (namespace != Namespace.forUri(reader.getNamespaceURI())) throw unexpectedElement(reader);
while (reader.hasNext() && reader.nextTag() != END_ELEMENT) { if (namespace != Namespace.forUri(reader.getNamespaceURI())) throw unexpectedElement(reader);
if (namespace != Namespace.forUri(reader.getNamespaceURI())) throw unexpectedElement(reader);
nodes.add(subsystem); Namespace readerNS = Namespace.forUri(reader.getNamespaceURI()); switch (readerNS) { case JacORB_1_0: {
@Override protected void initializeLegacyParsers(ExtensionParsingContext context) { context.setSubsystemXmlMapping(SUBSYSTEM_NAME, JacORBSubsystemParser.Namespace.JacORB_1_0.getUriString(), () -> PARSER); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, JacORBSubsystemParser.Namespace.JacORB_1_1.getUriString(), () -> PARSER); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, JacORBSubsystemParser.Namespace.JacORB_1_2.getUriString(), () -> PARSER); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, JacORBSubsystemParser.Namespace.JacORB_1_3.getUriString(), () -> PARSER); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, JacORBSubsystemParser.Namespace.JacORB_1_4.getUriString(), () -> PARSER); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, JacORBSubsystemParser.Namespace.JacORB_2_0.getUriString(), () -> PARSER); }