Package org.apache.abdera.writer

Examples of org.apache.abdera.writer.StreamWriter.startElement()


                                .encodeToString(bytes);
                        writer.startElement("EncryptedData",
                                "http://www.w3.org/2001/04/xmlenc#");
                        writer.startElement("CipherData",
                                "http://www.w3.org/2001/04/xmlenc#");
                        writer.startElement("CipherValue",
                                "http://www.w3.org/2001/04/xmlenc#");
                        writer.writeElementText(encoded);
                        writer.endElement();
                        writer.endElement();
                        writer.endElement();
View Full Code Here


                    // now: encrypt the payload with content key
                    byte[] bytes = encryptElementAES(entry, contentKey);
                    String encoded = new Base64(0, null, true)
                            .encodeToString(bytes);
                    writer.startElement("EncryptedData",
                            "http://www.w3.org/2001/04/xmlenc#");
                    writer.startElement("CipherData",
                            "http://www.w3.org/2001/04/xmlenc#");
                    writer.startElement("CipherValue",
                            "http://www.w3.org/2001/04/xmlenc#");
View Full Code Here

                    byte[] bytes = encryptElementAES(entry, contentKey);
                    String encoded = new Base64(0, null, true)
                            .encodeToString(bytes);
                    writer.startElement("EncryptedData",
                            "http://www.w3.org/2001/04/xmlenc#");
                    writer.startElement("CipherData",
                            "http://www.w3.org/2001/04/xmlenc#");
                    writer.startElement("CipherValue",
                            "http://www.w3.org/2001/04/xmlenc#");
                    writer.writeElementText(encoded);
                    writer.endElement();
View Full Code Here

                            .encodeToString(bytes);
                    writer.startElement("EncryptedData",
                            "http://www.w3.org/2001/04/xmlenc#");
                    writer.startElement("CipherData",
                            "http://www.w3.org/2001/04/xmlenc#");
                    writer.startElement("CipherValue",
                            "http://www.w3.org/2001/04/xmlenc#");
                    writer.writeElementText(encoded);
                    writer.endElement();
                    writer.endElement();
                    writer.endElement();
View Full Code Here

    SerializationContext context,
    Conventions conventions) {
      StreamWriter sw = context.getStreamWriter();
      if (!(source instanceof Element)) return;
      Element element = (Element) source;
      sw.startElement(element.getQName());
      for (QName attr : element.getAttributes())
        sw.writeAttribute(
          attr,
          element.getAttributeValue(attr));
      XPath xpath = context.getAbdera().getXPath();
View Full Code Here

    ObjectContext objectContext,
    SerializationContext context,
    Conventions conventions) {
      QName qname = this.qname != null ? this.qname : getQName(objectContext.getAccessor());
      StreamWriter sw = context.getStreamWriter();
      sw.startElement(qname);
  }
 
  protected void process(
    Object source,
    ObjectContext objectContext,
View Full Code Here

    ObjectContext objectContext,
    SerializationContext context,
    Conventions conventions) {
      QName qname = this.qname != null ? this.qname : getQName(objectContext.getAccessor());
      StreamWriter sw = context.getStreamWriter();
      sw.startElement(qname);
  }
 
  protected void process(
    Object source,
    ObjectContext objectContext,
View Full Code Here

    ObjectContext objectContext,
    SerializationContext context,
    Conventions conventions) {
      QName qname = this.qname != null ? this.qname : getQName(objectContext.getAccessor());
      StreamWriter sw = context.getStreamWriter();
      sw.startElement(qname);
  }
 
  protected void process(
    Object source,
    ObjectContext objectContext,
View Full Code Here

    ObjectContext objectContext,
    SerializationContext context,
    Conventions conventions) {
      QName qname = this.qname != null ? this.qname : getQName(objectContext.getAccessor());
      StreamWriter sw = context.getStreamWriter();
      sw.startElement(qname);
      writeCommon(source, objectContext, context, conventions);

  }
  
}
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.