Class GetUserSettingsRequest
- java.lang.Object
-
- microsoft.exchange.webservices.data.autodiscover.request.AutodiscoverRequest
-
- microsoft.exchange.webservices.data.autodiscover.request.GetUserSettingsRequest
-
public class GetUserSettingsRequest extends AutodiscoverRequest
Represents a GetUserSettings request.
-
-
Constructor Summary
Constructors Constructor Description GetUserSettingsRequest(AutodiscoverService service, URI url)Initializes a new instance of theGetUserSettingsRequestclass.GetUserSettingsRequest(AutodiscoverService service, URI url, boolean expectPartnerToken)Initializes a new instance of theGetUserSettingsRequestclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AutodiscoverResponsecreateServiceResponse()Creates the service response.GetUserSettingsResponseCollectionexecute()Executes this instance.protected StringgetPartnerToken()Gets the partner token.protected StringgetPartnerTokenReference()Gets the partner token reference.protected StringgetRequestXmlElementName()Gets the name of the request XML element.protected StringgetResponseXmlElementName()Gets the name of the response XML element.protected List<UserSettingName>getSettings()Gets the settings.protected List<String>getSmtpAddresses()Gets the SMTP addresses.protected StringgetWsAddressingActionName()Gets the WS-Addressing action name.protected voidreadSoapHeader(EwsXmlReader reader)Read the partner token soap header.voidsetSettings(List<UserSettingName> value)Sets the settings.voidsetSmtpAddresses(List<String> value)Sets the smtp addresses.protected voidvalidate()Validates the request.protected voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes the attribute to XML.protected voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes request to XML.voidwriteExtraCustomSoapHeadersToXml(EwsServiceXmlWriter writer)Write extra headers.-
Methods inherited from class microsoft.exchange.webservices.data.autodiscover.request.AutodiscoverRequest
getResponseStream, getService, getUrl, internalExecute, isRedirectionResponse, loadFromXml, readSoapBody, readSoapHeaders, writeBodyToXml, writeSoapRequest
-
-
-
-
Constructor Detail
-
GetUserSettingsRequest
public GetUserSettingsRequest(AutodiscoverService service, URI url) throws ServiceValidationException
Initializes a new instance of theGetUserSettingsRequestclass.- Parameters:
service- the serviceurl- the url- Throws:
ServiceValidationException- on validation error
-
GetUserSettingsRequest
public GetUserSettingsRequest(AutodiscoverService service, URI url, boolean expectPartnerToken) throws ServiceValidationException
Initializes a new instance of theGetUserSettingsRequestclass.- Parameters:
service- autodiscover service associated with this requesturl- URL of Autodiscover serviceexpectPartnerToken- expect partner token or not- Throws:
ServiceValidationException- on validation error
-
-
Method Detail
-
validate
protected void validate() throws Exception
Validates the request.- Overrides:
validatein classAutodiscoverRequest- Throws:
Exception- the exception
-
execute
public GetUserSettingsResponseCollection execute() throws Exception
Executes this instance.- Returns:
- the gets the user settings response collection
- Throws:
Exception- the exception
-
getRequestXmlElementName
protected String getRequestXmlElementName()
Gets the name of the request XML element.- Specified by:
getRequestXmlElementNamein classAutodiscoverRequest- Returns:
- Request XML element name.
-
getResponseXmlElementName
protected String getResponseXmlElementName()
Gets the name of the response XML element.- Specified by:
getResponseXmlElementNamein classAutodiscoverRequest- Returns:
- Response XML element name.
-
getWsAddressingActionName
protected String getWsAddressingActionName()
Gets the WS-Addressing action name.- Specified by:
getWsAddressingActionNamein classAutodiscoverRequest- Returns:
- WS-Addressing action name.
-
createServiceResponse
protected AutodiscoverResponse createServiceResponse()
Creates the service response.- Specified by:
createServiceResponsein classAutodiscoverRequest- Returns:
- AutodiscoverResponse
-
writeAttributesToXml
protected void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
Writes the attribute to XML.- Specified by:
writeAttributesToXmlin classAutodiscoverRequest- Parameters:
writer- The writer.- Throws:
ServiceXmlSerializationException- the service xml serialization exception
-
writeExtraCustomSoapHeadersToXml
public void writeExtraCustomSoapHeadersToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
Description copied from class:AutodiscoverRequestWrite extra headers.- Overrides:
writeExtraCustomSoapHeadersToXmlin classAutodiscoverRequest- Parameters:
writer- XML writer- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException- the service xml serialization exception
-
writeElementsToXml
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
Writes request to XML.- Specified by:
writeElementsToXmlin classAutodiscoverRequest- Parameters:
writer- the writer- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException- the service xml serialization exception
-
readSoapHeader
protected void readSoapHeader(EwsXmlReader reader) throws Exception
Read the partner token soap header.- Overrides:
readSoapHeaderin classAutodiscoverRequest- Parameters:
reader- EWS XML reader- Throws:
Exception- on error
-
getSmtpAddresses
protected List<String> getSmtpAddresses()
Gets the SMTP addresses.- Returns:
- the SMTP addresses
-
setSmtpAddresses
public void setSmtpAddresses(List<String> value)
Sets the smtp addresses.- Parameters:
value- the new smtp addresses
-
getSettings
protected List<UserSettingName> getSettings()
Gets the settings.- Returns:
- the settings
-
setSettings
public void setSettings(List<UserSettingName> value)
Sets the settings.- Parameters:
value- the new settings
-
getPartnerToken
protected String getPartnerToken()
Gets the partner token.- Returns:
- partner token
-
getPartnerTokenReference
protected String getPartnerTokenReference()
Gets the partner token reference.- Returns:
- partner token reference
-
-