Package org.w3c.dom

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


      initialize();
    }
    Document document = templates.get(deviceAdaptive+"_"+device.toString());
    if (document != null)
    {
      document = (Document) document.cloneNode(true);
    }
    return document;
  }
 
  /**
 
View Full Code Here


      initialize();
    }
    Document document = templates.get(library+"_"+id);
    if (document != null)
    {
      document = (Document) document.cloneNode(true);
    }
    return document;
  }
 
  /**
 
View Full Code Here

    }

    public Object getResource()
    {
      final Document resource = (Document) super.getResource();
      return resource.cloneNode(true);
    }
  }

  private static final Log logger = LogFactory.getLog(DomTreeResourceFactory.class);
View Full Code Here

    }
   
    boolean respMecSign = false;
    try {
      //JAXBElement jAXBRequest = (JAXBElement) unmarshaller.unmarshal(request);
      JAXBElement jAXBRequest = (JAXBElement) unmarshaller.unmarshal(requestDoc.cloneNode(true));
      JAXBElement jAXBResult = null;
      if(jAXBRequest.getValue() instanceof RequestAbstractType){
        respMecSign = ((RequestAbstractType)jAXBRequest.getValue()).getResponseMechanism().contains(XKMSConstants.RESPONSMEC_REQUESTSIGNATUREVALUE);
      }       
      if(jAXBRequest.getValue() instanceof ValidateRequestType ){
View Full Code Here

        throw new PortalException("unable to get registry (null)");
      }
    }

    // Clone the original registry document so that it doesn't get modified
    return (Document)channelRegistry.cloneNode(true);
  }

  /**
   * Returns the channel registry as a Document.  This document is filtered
   * according to a user's channel permissions.
View Full Code Here

        throw new PortalException("unable to get channelTypes (null)");
      }
    }

    // Clone the original channel types document so that it doesn't get modified
    return (Document)channelTypes.cloneNode(true);
  }

  /**
   * Returns a CPD (channel publishing document) as a Document
   * @param chanTypeID the channel type ID, "-1" if channel type is "custom"
View Full Code Here

        throw new PortalException("unable to get Channel Publishing Document (null)");
      }
    }

    // Clone the original CPD document so that it doesn't get modified
    return (Document)cpd.cloneNode(true);
  }
 
  public static void expireCache() {
    channelRegistryCache.remove(CHANNEL_REGISTRY_CACHE_KEY);   
  }
View Full Code Here

        log.info( "Caching channel registry.");
      }
    }

    // Clone the original registry document so that it doesn't get modified
    return (Document)channelRegistry.cloneNode(true);
  }

  /**
   * Returns the channel registry as a Document.  This document is filtered
   * according to a user's channel permissions.
View Full Code Here

            log.info( "Caching channel types.");
      }
    }

    // Clone the original channel types document so that it doesn't get modified
    return (Document)channelTypes.cloneNode(true);
  }

  /**
   * Returns a CPD (channel publishing document) as a Document
   * @param chanTypeID the channel type ID, "-1" if channel type is "custom"
View Full Code Here

            log.info( "Caching CPD for channel type " + chanTypeID);
      }
    }

    // Clone the original CPD document so that it doesn't get modified
    return (Document)cpd.cloneNode(true);
  }
}


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.