IORConfigurationNodepublic class IORConfigurationNode extends com.sun.enterprise.deployment.node.DeploymentDescriptorNode This node handles all EJB IOR Configuration information |
Fields Summary |
---|
com.sun.enterprise.deployment.EjbIORConfigurationDescriptor | descriptor |
Methods Summary |
---|
public java.lang.Object | getDescriptor()
return descriptor;
| protected java.util.Map | getDispatchTable()all sub-implementation of this class can use a dispatch table to map xml element to
method name on the descriptor class for setting the element value.
Map table = super.getDispatchTable();
// transport-config
table.put(RuntimeTagNames.INTEGRITY, "setIntegrity");
table.put(RuntimeTagNames.CONFIDENTIALITY, "setConfidentiality");
table.put(RuntimeTagNames.ESTABLISH_TRUST_IN_TARGET, "setEstablishTrustInTarget");
table.put(RuntimeTagNames.ESTABLISH_TRUST_IN_CLIENT, "setEstablishTrustInClient");
// as-context
table.put(RuntimeTagNames.AUTH_METHOD, "setAuthenticationMethod");
table.put(RuntimeTagNames.REALM, "setRealmName");
table.put(RuntimeTagNames.REQUIRED, "setAuthMethodRequired");
// sas-context
table.put(RuntimeTagNames.CALLER_PROPAGATION, "setCallerPropagation");
return table;
| public org.w3c.dom.Node | writeDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.EjbIORConfigurationDescriptor iorDesc)write the descriptor class to a DOM tree and return it
Node iorNode = appendChild(parent, nodeName);
Node transportNode = appendChild(iorNode, RuntimeTagNames.TRANSPORT_CONFIG);
appendTextChild(transportNode, RuntimeTagNames.INTEGRITY, iorDesc.getIntegrity());
appendTextChild(transportNode, RuntimeTagNames.CONFIDENTIALITY, iorDesc.getConfidentiality());
appendTextChild(transportNode, RuntimeTagNames.ESTABLISH_TRUST_IN_TARGET,
iorDesc.getEstablishTrustInTarget());
appendTextChild(transportNode, RuntimeTagNames.ESTABLISH_TRUST_IN_CLIENT,
iorDesc.getEstablishTrustInClient());
// These two sub-elements should only be added if needed.
Node asContextNode = appendChild(iorNode, RuntimeTagNames.AS_CONTEXT);
appendTextChild(asContextNode, RuntimeTagNames.AUTH_METHOD, iorDesc.getAuthenticationMethod());
appendTextChild(asContextNode, RuntimeTagNames.REALM, iorDesc.getRealmName());
appendTextChild(asContextNode, RuntimeTagNames.REQUIRED,
Boolean.valueOf(iorDesc.isAuthMethodRequired()).toString());
Node sasContextNode = appendChild(iorNode, RuntimeTagNames.SAS_CONTEXT);
appendTextChild(sasContextNode, RuntimeTagNames.CALLER_PROPAGATION, iorDesc.getCallerPropagation());
return iorNode;
|
|