Package org.w3c.dom

Examples of org.w3c.dom.Element.cloneNode()


                    {
                        continue;
                    }

                    Element subChild = (Element)subChildNodes.item(iSubChild);
                    row.appendChild(subChild.cloneNode(true));
                }

                theadNode.appendChild(row);
                input.removeChild(node);
                break;
View Full Code Here


                                                                      apiParamList2.item(iy).removeChild(toDesc);
                                                                    }
                                                                   
                                                                    if(fromDesc != null )
                                                                    {
                                                                      apiParamList2.item(iy).appendChild(fromDesc.cloneNode(true));
                                                                    }
                                                      }                             
                                                            }                                                         
                                                        }
                                                      }
View Full Code Here

                                          apiParamList2.item(ix).removeChild(toDesc);
                                        }
                                       
                                        if(fromDesc != null )
                                        {
                                          apiParamList2.item(ix).appendChild(fromDesc.cloneNode(true));
                                        }
                          }                             
                                }                             
                            }
                          }
View Full Code Here

                                toApiReturn.removeChild(toReturnDesc);
                              }
                             
                              if(fromReturnDesc != null )
                              {
                                toApiReturn.appendChild(fromReturnDesc.cloneNode(true));
                              }
                            }
                        }
                    }
                }
View Full Code Here

        SSOValidatorResponse validatorResponse = new SSOValidatorResponse();
        validatorResponse.setResponseId(samlResponse.getID());
        validatorResponse.setSessionNotOnOrAfter(sessionNotOnOrAfter);
        // the assumption for now is that SAMLResponse will contain only a single assertion
        Element assertionElement = samlResponse.getAssertions().get(0).getDOM();
        validatorResponse.setAssertion(DOM2Writer.nodeToString(assertionElement.cloneNode(true)));
        return validatorResponse;
    }
   
    /**
     * Validate the Issuer (if it exists)
View Full Code Here

                // copy status
                Element configElement = this.getCopletConfiguration(copletID,
                                                      (Map)theProfile.get(PortalConstants.PROFILE_DEFAULT_COPLETS),
                                                      (Map)theProfile.get(PortalConstants.PROFILE_MEDIA_COPLETS));
                Element configStatus = (Element)DOMUtil.getFirstNodeFromPath(configElement, new String[] {"status"}, false);
                copletNode.appendChild(configStatus.cloneNode(true));

                // clear type information for each status
                Element status = (Element)copletNode.getElementsByTagName("status").item(0);
                NodeList parameters = status.getChildNodes();
                Node    current;
View Full Code Here

        soapOperation = requiresSOAP12 ? SOAP12_OPERATION : SOAP_OPERATION;
    }

    public Definition cloneDefinition(WSDLFactory factory, Definition definition) throws WSDLException {
        Element root = definition.getDocumentationElement();
        root = (Element)root.cloneNode(true);
        WSDLReader reader = factory.newWSDLReader();
        return reader.readWSDL(definition.getDocumentBaseURI(), root);
    }
   
    public Types createTypes(Definition definition) {
View Full Code Here

        Date createdDate = new Date();
        long currentTime = createdDate.getTime() + 300000;
        createdDate.setTime(currentTime);
        elementCreated.appendChild(doc.createTextNode(zulu.format(createdDate)));
        timestampElement.appendChild(elementCreated);
        timestampElement.appendChild(elementCreated.cloneNode(true));

        secHeader.getSecurityHeader().appendChild(timestampElement);
       
        if (LOG.isDebugEnabled()) {
            String outputString =
View Full Code Here

        Date createdDate = new Date();
        long currentTime = createdDate.getTime() + 300000;
        createdDate.setTime(currentTime);
        elementCreated.appendChild(doc.createTextNode(zulu.format(createdDate)));
        timestampElement.appendChild(elementCreated);
        timestampElement.appendChild(elementCreated.cloneNode(true));

        secHeader.getSecurityHeader().appendChild(timestampElement);
       
        if (LOG.isDebugEnabled()) {
            String outputString =
View Full Code Here

        Element wsseHeader = getFirstChildElement(sh,
                                                  new QName(
                                                            "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd",
                                                            "Security"), true);

        Node newWsseHeader = wsseHeader.cloneNode(false);
        Node cur = wsseHeader.getFirstChild();

        String newId = newEncData.getAttributeNS(null, "Id");
        while (cur != null) {
            cur = copyHeadersAndUpdateRefList(cur, newWsseHeader, newId);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.