Class GetUserOofSettingsRequest
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
-
- microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<GetUserOofSettingsResponse>
-
- microsoft.exchange.webservices.data.core.request.GetUserOofSettingsRequest
-
public final class GetUserOofSettingsRequest extends SimpleServiceRequestBase<GetUserOofSettingsResponse>
Represents a GetUserOofSettings request.
-
-
Constructor Summary
Constructors Constructor Description GetUserOofSettingsRequest(ExchangeService service)Initializes a new instance of the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetUserOofSettingsResponseexecute()Executes this request.protected ExchangeVersiongetMinimumRequiredServerVersion()Gets the request version.protected StringgetResponseXmlElementName()Gets the name of the response XML element.protected StringgetSmtpAddress()Gets the SMTP address.StringgetXmlElementName()Gets the name of the XML element.protected GetUserOofSettingsResponseparseResponse(EwsServiceXmlReader reader)Parses the response.voidsetSmtpAddress(String smtpAddress)Sets the smtp address.protected voidvalidate()Validate request.protected voidwriteElementsToXml(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
-
-
-
-
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:
getXmlElementNamein classServiceRequestBase<GetUserOofSettingsResponse>- Returns:
- XML element name.
-
validate
protected void validate() throws Exception
Validate request.- Overrides:
validatein classServiceRequestBase<GetUserOofSettingsResponse>- Throws:
Exception- the exception
-
writeElementsToXml
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
Validate request.- Specified by:
writeElementsToXmlin classServiceRequestBase<GetUserOofSettingsResponse>- Parameters:
writer- the writer- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException- the service xml serialization exception
-
getResponseXmlElementName
protected String getResponseXmlElementName()
Gets the name of the response XML element.- Specified by:
getResponseXmlElementNamein classServiceRequestBase<GetUserOofSettingsResponse>- Returns:
- XML element name
-
parseResponse
protected GetUserOofSettingsResponse parseResponse(EwsServiceXmlReader reader) throws Exception
Parses the response.- Specified by:
parseResponsein classServiceRequestBase<GetUserOofSettingsResponse>- Parameters:
reader- The reader.- Returns:
- the Response Object.
- Throws:
Exception- the exception
-
getMinimumRequiredServerVersion
protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the request version.- Specified by:
getMinimumRequiredServerVersionin classServiceRequestBase<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
-
-