/** * Writes an empty OofReply to XML. * * @param writer the writer * @param xmlElementName the xml element name * @throws XMLStreamException the XML stream exception */ public static void writeEmptyReplyToXml(EwsServiceXmlWriter writer, String xmlElementName) throws XMLStreamException { writer.writeStartElement(XmlNamespace.Types, xmlElementName); writer.writeEndElement(); // xmlElementName }
/** * The Writer */ public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { for (byte[] item : this.content) { writer.writeStartElement(XmlNamespace.Types, ByteArrayArray.ItemXmlElementName); writer.writeBase64ElementValue(item); writer.writeEndElement(); } }
/** * Delete the whole members collection. * * @param writer the writer * @throws XMLStreamException the XML stream exception * @throws ServiceXmlSerializationException the service xml serialization exception */ private void writeDeleteMembersCollectionToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { writer.writeStartElement(XmlNamespace.Types, XmlElementNames.DeleteItemField); ContactGroupSchema.Members.writeToXml(writer); writer.writeEndElement(); }
/** * Writes to xml. * * @param writer the writer * @throws Exception the exception */ @Override protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { writer.writeStartElement(XmlNamespace.Messages, XmlElementNames.FolderChanges); for (Folder folder : this.folders) { folder.writeToXmlForUpdate(writer); } writer.writeEndElement(); }
@Override protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { if (this.savedItemsDestinationFolder != null) { writer.writeStartElement(XmlNamespace.Messages, XmlElementNames.SavedItemFolderId); this.savedItemsDestinationFolder.writeToXml(writer); writer.writeEndElement(); } writer.writeStartElement(XmlNamespace.Messages, XmlElementNames.ItemChanges); for (Item item : this.items) { item.writeToXmlForUpdate(writer); } writer.writeEndElement(); }
/** * Writes to XML. * * @param writer The writer */ public void writeToXml(EwsServiceXmlWriter writer) throws Exception { writer.writeStartElement(XmlNamespace.Messages, this.getViewXmlElementName()); this.internalWriteViewToXml(writer); writer.writeEndElement(); // this.GetViewXmlElementName() }
/** * Writes to XML. * * @param writer the writer * @throws ServiceXmlSerializationException the service xml serialization exception * @throws XMLStreamException the XML stream exception */ public void writeToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, XMLStreamException { writer.writeStartElement(XmlNamespace.Types, this.getXmlElementName()); this.writeAttributesToXml(writer); writer.writeEndElement(); // this.GetXmlElementName() }
/** * Writes the elements to XML. * * @param writer the writer * @throws Exception the exception */ public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { writer.writeStartElement(this.getNamespace(), XmlElementNames.Mailbox); super.writeElementsToXml(writer); writer.writeEndElement(); } }
/** * Writes to XML. * * @param writer The writer. * @throws XMLStreamException the XML stream exception * @throws ServiceXmlSerializationException the service xml serialization exception */ public void writeToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { writer.writeStartElement(XmlNamespace.Types, this.getXmlElementName()); this.writeAttributesToXml(writer); writer.writeEndElement(); }
/** * Writes to XML. * * @param writer The writer. * @param xmlNamespace The XML namespace. * @param xmlElementName Name of the XML element. * @throws Exception the exception */ public void writeToXml(EwsServiceXmlWriter writer, XmlNamespace xmlNamespace, String xmlElementName) throws Exception { writer.writeStartElement(xmlNamespace, xmlElementName); this.writeAttributesToXml(writer); this.writeElementsToXml(writer); writer.writeEndElement(); }
/** * Validate request. * * @param writer the writer * @throws XMLStreamException the XML stream exception * @throws ServiceXmlSerializationException the service xml serialization exception */ @Override protected void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Mailbox); writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Address, this.getSmtpAddress()); writer.writeEndElement(); // Mailbox }
/** * Writes elements to XML. * * @param writer the writer * @throws Exception the exception */ @Override public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { if (this.searchFilter != null) { writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Restriction); this.searchFilter.writeToXml(writer); writer.writeEndElement(); // Restriction } this.rootFolderIds.writeToXml(writer, XmlElementNames.BaseFolderIds); }
/** * Writes the elements to Xml. * * @param writer the writer * @throws XMLStreamException the XML stream exception * @throws ServiceXmlSerializationException the service xml serialization exception */ @Override public void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { super.writeElementsToXml(writer); writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Constant); writer.writeAttributeValue(XmlAttributeNames.Value, this.value); writer.writeEndElement(); // Constant }
/** * Writes the elements to XML. * * @param writer the writer * @throws javax.xml.stream.XMLStreamException , ServiceXmlSerializationException * @throws ServiceXmlSerializationException the service xml serialization exception */ @Override public void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { super.writeElementsToXml(writer); writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Bitmask); writer.writeAttributeValue(XmlAttributeNames.Value, this.bitmask); writer.writeEndElement(); // Bitmask }
/** * Writes a dictionary entry type to Xml. * * @param writer the writer * @param dictionaryObjectType type to write * @throws XMLStreamException the XML stream exception * @throws ServiceXmlSerializationException the service xml serialization exception */ private void writeEntryTypeToXml(EwsServiceXmlWriter writer, UserConfigurationDictionaryObjectType dictionaryObjectType) throws XMLStreamException, ServiceXmlSerializationException { writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Type); writer .writeValue(dictionaryObjectType.toString(), XmlElementNames.Type); writer.writeEndElement(); }
/** * Writes XML body. * * @param writer The writer. * @throws Exception the exception */ protected void writeBodyToXml(EwsServiceXmlWriter writer) throws Exception { writer.writeStartElement(XmlNamespace.Messages, this.getXmlElementName()); this.writeAttributesToXml(writer); this.writeElementsToXml(writer); writer.writeEndElement(); // m:this.GetXmlElementName() }
/** * Writes XML elements. * * @param writer the writer * @throws Exception the exception */ @Override protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { writer.writeStartElement(XmlNamespace.Messages, XmlElementNames.ToFolderId); this.getDestinationFolderId().writeToXml(writer); writer.writeEndElement(); this.writeIdsToXml(writer); }
/** * Writes XML body. * * @param writer the writer * @throws ServiceXmlSerializationException the service xml serialization exception * @throws XMLStreamException the XML stream exception */ protected void writeBodyToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, XMLStreamException { writer.writeStartElement(XmlNamespace.Autodiscover, this .getRequestXmlElementName()); this.writeAttributesToXml(writer); this.writeElementsToXml(writer); writer.writeEndElement(); // m:this.GetXmlElementName() }
/** * Writes to XML. * * @param writer the writer * @param xmlElementName the xml element name * @param isCalendarFolder the is calendar folder * @throws Exception the exception */ protected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName, boolean isCalendarFolder) throws Exception { writer.writeStartElement(this.getNamespace(), xmlElementName); this.writeAttributesToXml(writer); this.writeElementsToXml(writer, isCalendarFolder); writer.writeEndElement(); } }
/** * Writes the elements to XML. * * @param writer the writer * @throws Exception the exception */ @Override protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Mailbox); writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Address, this.getSmtpAddress()); writer.writeEndElement(); // Mailbox this.getOofSettings().writeToXml(writer, XmlElementNames.UserOofSettings); }