public class GetUserSettingsRequest extends AutodiscoverRequest
Constructor and Description |
---|
GetUserSettingsRequest(AutodiscoverService service,
URI url)
Initializes a new instance of the
GetUserSettingsRequest class. |
GetUserSettingsRequest(AutodiscoverService service,
URI url,
boolean expectPartnerToken)
Initializes a new instance of the
GetUserSettingsRequest class. |
Modifier and Type | Method and Description |
---|---|
protected AutodiscoverResponse |
createServiceResponse()
Creates the service response.
|
GetUserSettingsResponseCollection |
execute()
Executes this instance.
|
protected String |
getPartnerToken()
Gets the partner token.
|
protected String |
getPartnerTokenReference()
Gets the partner token reference.
|
protected String |
getRequestXmlElementName()
Gets the name of the request XML element.
|
protected String |
getResponseXmlElementName()
Gets the name of the response XML element.
|
protected List<UserSettingName> |
getSettings()
Gets the settings.
|
protected List<String> |
getSmtpAddresses()
Gets the SMTP addresses.
|
protected String |
getWsAddressingActionName()
Gets the WS-Addressing action name.
|
protected void |
readSoapHeader(EwsXmlReader reader)
Read the partner token soap header.
|
void |
setSettings(List<UserSettingName> value)
Sets the settings.
|
void |
setSmtpAddresses(List<String> value)
Sets the smtp addresses.
|
protected void |
validate()
Validates the request.
|
protected void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes the attribute to XML.
|
protected void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes request to XML.
|
void |
writeExtraCustomSoapHeadersToXml(EwsServiceXmlWriter writer)
Write extra headers.
|
getResponseStream, getService, getUrl, internalExecute, isRedirectionResponse, loadFromXml, readSoapBody, readSoapHeaders, writeBodyToXml, writeSoapRequest
public GetUserSettingsRequest(AutodiscoverService service, URI url) throws ServiceValidationException
GetUserSettingsRequest
class.service
- the serviceurl
- the urlServiceValidationException
- on validation errorpublic GetUserSettingsRequest(AutodiscoverService service, URI url, boolean expectPartnerToken) throws ServiceValidationException
GetUserSettingsRequest
class.service
- autodiscover service associated with this requesturl
- URL of Autodiscover serviceexpectPartnerToken
- expect partner token or notServiceValidationException
- on validation errorprotected void validate() throws Exception
validate
in class AutodiscoverRequest
Exception
- the exceptionpublic GetUserSettingsResponseCollection execute() throws Exception
Exception
- the exceptionprotected String getRequestXmlElementName()
getRequestXmlElementName
in class AutodiscoverRequest
protected String getResponseXmlElementName()
getResponseXmlElementName
in class AutodiscoverRequest
protected String getWsAddressingActionName()
getWsAddressingActionName
in class AutodiscoverRequest
protected AutodiscoverResponse createServiceResponse()
createServiceResponse
in class AutodiscoverRequest
protected void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeAttributesToXml
in class AutodiscoverRequest
writer
- The writer.ServiceXmlSerializationException
- the service xml serialization exceptionpublic void writeExtraCustomSoapHeadersToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
AutodiscoverRequest
writeExtraCustomSoapHeadersToXml
in class AutodiscoverRequest
writer
- XML writerXMLStreamException
- the XML stream exceptionServiceXmlSerializationException
- the service xml serialization exceptionprotected void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
writeElementsToXml
in class AutodiscoverRequest
writer
- the writerXMLStreamException
- the XML stream exceptionServiceXmlSerializationException
- the service xml serialization exceptionprotected void readSoapHeader(EwsXmlReader reader) throws Exception
readSoapHeader
in class AutodiscoverRequest
reader
- EWS XML readerException
- on errorprotected List<String> getSmtpAddresses()
public void setSmtpAddresses(List<String> value)
value
- the new smtp addressesprotected List<UserSettingName> getSettings()
public void setSettings(List<UserSettingName> value)
value
- the new settingsprotected String getPartnerToken()
protected String getPartnerTokenReference()
Copyright © 2012–2015 Microsoft. All rights reserved.