microsoft.exchange.webservices.data.core.request
Class GetUserOofSettingsRequest

java.lang.Object
  extended by microsoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
      extended by microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<GetUserOofSettingsResponse>
          extended by microsoft.exchange.webservices.data.core.request.GetUserOofSettingsRequest

public final class GetUserOofSettingsRequest
extends SimpleServiceRequestBase<GetUserOofSettingsResponse>

Represents a GetUserOofSettings request.


Constructor Summary
GetUserOofSettingsRequest(ExchangeService service)
          Initializes a new instance of the class.
 
Method Summary
 GetUserOofSettingsResponse execute()
          Executes this request.
protected  ExchangeVersion getMinimumRequiredServerVersion()
          Gets the request version.
protected  String getResponseXmlElementName()
          Gets the name of the response XML element.
protected  String getSmtpAddress()
          Gets the SMTP address.
 String getXmlElementName()
          Gets the name of the XML element.
protected  GetUserOofSettingsResponse parseResponse(EwsServiceXmlReader reader)
          Parses the response.
 void setSmtpAddress(String smtpAddress)
          Sets the smtp address.
protected  void validate()
          Validate request.
protected  void writeElementsToXml(EwsServiceXmlWriter writer)
          Validate request.
 
Methods inherited from class microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase
beginExecute, endInternalExecute, internalExecute
 
Methods inherited from class microsoft.exchange.webservices.data.core.request.ServiceRequestBase
buildEwsHttpPoolingWebRequest, buildEwsHttpWebRequest, getEwsHttpWebResponse, getResponseStream, getService, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetUserOofSettingsRequest

public GetUserOofSettingsRequest(ExchangeService service)
                          throws Exception
Initializes a new instance of the class.

Parameters:
service - the service
Throws:
Exception
Method Detail

getXmlElementName

public String getXmlElementName()
Gets the name of the XML element.

Specified by:
getXmlElementName in class ServiceRequestBase<GetUserOofSettingsResponse>
Returns:
XML element name.

validate

protected void validate()
                 throws Exception
Validate request.

Overrides:
validate in class ServiceRequestBase<GetUserOofSettingsResponse>
Throws:
Exception - the exception

writeElementsToXml

protected void writeElementsToXml(EwsServiceXmlWriter writer)
                           throws XMLStreamException,
                                  ServiceXmlSerializationException
Validate request.

Specified by:
writeElementsToXml in class ServiceRequestBase<GetUserOofSettingsResponse>
Parameters:
writer - the writer
Throws:
XMLStreamException - the XML stream exception
ServiceXmlSerializationException - the service xml serialization exception

getResponseXmlElementName

protected String getResponseXmlElementName()
Gets the name of the response XML element.

Specified by:
getResponseXmlElementName in class ServiceRequestBase<GetUserOofSettingsResponse>
Returns:
XML element name

parseResponse

protected GetUserOofSettingsResponse parseResponse(EwsServiceXmlReader reader)
                                            throws Exception
Parses the response.

Specified by:
parseResponse in class ServiceRequestBase<GetUserOofSettingsResponse>
Parameters:
reader - The reader.
Returns:
the Response Object.
Throws:
Exception - the exception

getMinimumRequiredServerVersion

protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the request version.

Specified by:
getMinimumRequiredServerVersion in class ServiceRequestBase<GetUserOofSettingsResponse>
Returns:
Earliest Exchange version in which this request is supported

execute

public GetUserOofSettingsResponse execute()
                                   throws Exception
Executes this request.

Returns:
Service response.
Throws:
Exception - the exception

getSmtpAddress

protected String getSmtpAddress()
Gets the SMTP address.

Returns:
the smtp address

setSmtpAddress

public void setSmtpAddress(String smtpAddress)
Sets the smtp address.

Parameters:
smtpAddress - the new smtp address


Copyright © 2012–2015 Microsoft. All rights reserved.