/** * Writes elements to XML. * * @param writer the writer * @throws XMLStreamException the XML stream exception * @throws ServiceXmlSerializationException the service xml serialization exception */ public void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { writer.writeElementValue(XmlNamespace.Types, XmlElementNames.EmailAddress, this.address); writer.writeElementValue(XmlNamespace.Types, XmlElementNames.RoutingType, this.routingType); }
/** * Writes the element value. * * @param xmlNamespace the XML namespace * @param localName the local name of the element * @param value the value * @throws XMLStreamException the XML stream exception * @throws ServiceXmlSerializationException the service xml serialization exception */ public void writeElementValue(XmlNamespace xmlNamespace, String localName, Object value) throws XMLStreamException, ServiceXmlSerializationException { this.writeElementValue(xmlNamespace, localName, localName, value); }
@Override protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { writer.writeElementValue(XmlNamespace.Messages, XmlElementNames.MailboxSmtpAddress, this.getMailboxSmtpAddress()); }
@Override protected void internalWriteElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { writer.writeElementValue(XmlNamespace.Types, XmlElementNames.StatusFrequency, this.getFrequency()); writer.writeElementValue(XmlNamespace.Types, XmlElementNames.URL, this .getUrl().toString()); }
/** * Writes elements to XML. * * @param writer the writer * @throws XMLStreamException the XML stream exception */ @Override public void writeElementsToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, XMLStreamException { writer.writeElementValue(XmlNamespace.Types, XmlElementNames.RuleId, this.getRuleId()); }
/** * Writes XML elements. * * @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.writeElementValue(XmlNamespace.Messages, XmlElementNames.SubscriptionId, this.getSubscriptionId()); }
/** * Writes XML elements. * * @param writer the writer * @throws Exception the exception */ @Override protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { this.itemId.writeToXml(writer, XmlNamespace.Messages, XmlElementNames.ItemId); writer.writeElementValue(XmlNamespace.Messages, XmlElementNames.DialString, dialString); }
/** * Writes elements to XML. * * @param writer the writer * @throws ServiceXmlSerializationException the service xml serialization exception * @throws XMLStreamException the XML stream exception */ @Override public void writeElementsToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, XMLStreamException { super.writeElementsToXml(writer); writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Day, this.dayOfMonth); }
/** * Reads response elements from XML. * * @param writer the writer * @throws XMLStreamException the XML stream exception * @throws ServiceXmlSerializationException the service xml serialization exception */ @Override protected void internalWriteElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Timeout, this.getTimeout()); } }
/** * Writes the elements to XML writer. * * @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.writeElementValue(XmlNamespace.Messages, XmlElementNames.SubscriptionId, this.getSubscriptionId()); writer.writeElementValue(XmlNamespace.Messages, XmlElementNames.Watermark, this.getWatermark()); }
/** * @param writer XML writer * @throws XMLStreamException the XML stream exception * @throws ServiceXmlSerializationException the service xml serialization exception */ @Override public void writeExtraCustomSoapHeadersToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { if (this.expectPartnerToken) { writer .writeElementValue(XmlNamespace.Autodiscover, XmlElementNames.BinarySecret, new String(org.apache.commons.codec.binary.Base64. encodeBase64(ExchangeServiceBase.getSessionKey()))); } }
/** * Writes elements to XML. * * @param writer the writer * @throws ServiceXmlSerializationException the service xml serialization exception * @throws XMLStreamException the XML stream exception */ @Override public void writeElementsToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, XMLStreamException { super.writeElementsToXml(writer); writer.writeElementValue(XmlNamespace.Types, XmlElementNames.DateTime, this.dateTime); }
/** * Writes the elements to XML. * * @param writer the writer * @throws XMLStreamException the XML stream exception * @throws ServiceXmlSerializationException the service xml serialization exception */ public void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { Date d = this.endDate; DateFormat df = new SimpleDateFormat("yyyy-MM-dd"); String formattedString = df.format(d); super.writeElementsToXml(writer); writer.writeElementValue(XmlNamespace.Types, XmlElementNames.EndDate, formattedString); }
/** * Gets the request version. * * @param writer the writer * @param xmlElementName the xml element name * @throws XMLStreamException the XML stream exception * @throws ServiceXmlSerializationException the service xml serialization exception */ @Override public void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) throws XMLStreamException, ServiceXmlSerializationException { String daysOfWeekAsString = this.toString(" "); if (!StringUtils.isEmpty(daysOfWeekAsString)) { writer.writeElementValue(XmlNamespace.Types, XmlElementNames.DaysOfWeek, daysOfWeekAsString); } }
/** * Write property to XML. * * @param writer the writer * @throws Exception the exception */ @Override public void internalWritePropertiesToXml(EwsServiceXmlWriter writer) throws Exception { super.internalWritePropertiesToXml(writer); writer.writeElementValue(XmlNamespace.Types, XmlElementNames.DayOfMonth, this.getDayOfMonth()); writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Month, this.getMonth()); }
/** * Write property to XML. * * @param writer the writer * @throws Exception the exception */ @Override public void internalWritePropertiesToXml(EwsServiceXmlWriter writer) throws Exception { super.internalWritePropertiesToXml(writer); writer.writeElementValue(XmlNamespace.Types, XmlElementNames.Interval, this.getInterval()); }
/** * Write property to XML. * * @param writer the writer * @throws Exception the exception */ @Override public void internalWritePropertiesToXml(EwsServiceXmlWriter writer) throws Exception { super.internalWritePropertiesToXml(writer); writer.writeElementValue(XmlNamespace.Types, XmlElementNames.DayOfMonth, this.getDayOfMonth()); }
/** * Writes 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 { for (String xmlElementName : PhysicalAddressSchema.getXmlElementNames()) { writer.writeElementValue(XmlNamespace.Types, xmlElementName, this.propertyBag.getSimplePropertyBag(xmlElementName)); } }
/** * 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 the attribute to XML. * * @param writer the writer * @throws Exception the exception */ @Override protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { this.getParentFolderIds().writeToXml(writer, XmlNamespace.Messages, XmlElementNames.ParentFolderIds); writer.writeElementValue(XmlNamespace.Messages, XmlElementNames.UnresolvedEntry, this.getNameToResolve()); }