/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param node name for * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, ProtectionDescriptor protectionDesc) { Element protectionNode = (Element)super.writeDescriptor(parent, nodeName, protectionDesc); // auth-source if (protectionDesc.getAttributeValue(protectionDesc.AUTH_SOURCE) != null) { setAttribute(protectionNode, WebServicesTagNames.AUTH_SOURCE, protectionDesc.getAttributeValue(protectionDesc.AUTH_SOURCE)); } // auth-recipient if (protectionDesc.getAttributeValue(protectionDesc.AUTH_RECIPIENT) != null) { setAttribute(protectionNode, WebServicesTagNames.AUTH_RECIPIENT, protectionDesc.getAttributeValue(protectionDesc.AUTH_RECIPIENT)); } return protectionNode; } }
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param node name for * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, ProtectionDescriptor protectionDesc) { Element protectionNode = (Element)super.writeDescriptor(parent, nodeName, protectionDesc); // auth-source if (protectionDesc.getAttributeValue(protectionDesc.AUTH_SOURCE) != null) { setAttribute(protectionNode, WebServicesTagNames.AUTH_SOURCE, protectionDesc.getAttributeValue(protectionDesc.AUTH_SOURCE)); } // auth-recipient if (protectionDesc.getAttributeValue(protectionDesc.AUTH_RECIPIENT) != null) { setAttribute(protectionNode, WebServicesTagNames.AUTH_RECIPIENT, protectionDesc.getAttributeValue(protectionDesc.AUTH_RECIPIENT)); } return protectionNode; } }