Class SetUserOofSettingsRequest
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
-
- microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<ServiceResponse>
-
- microsoft.exchange.webservices.data.core.request.SetUserOofSettingsRequest
-
public final class SetUserOofSettingsRequest extends SimpleServiceRequestBase<ServiceResponse>
Represents a SetUserOofSettings request.
-
-
Constructor Summary
Constructors Constructor Description SetUserOofSettingsRequest(ExchangeService service)Initializes a new instance of the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceResponseexecute()Executes this request.protected ExchangeVersiongetMinimumRequiredServerVersion()Gets the request version.OofSettingsgetOofSettings()Gets the oof settings.protected StringgetResponseXmlElementName()Gets the name of the response XML element.StringgetSmtpAddress()Gets the SMTP address.StringgetXmlElementName()Gets the name of the XML element.protected ServiceResponseparseResponse(EwsServiceXmlReader reader)Parses the response.voidsetOofSettings(OofSettings oofSettings)Sets the oof settings.voidsetSmtpAddress(String smtpAddress)Sets the smtp address.protected voidvalidate()Validate request.protected voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes the elements to XML.-
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
-
SetUserOofSettingsRequest
public SetUserOofSettingsRequest(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<ServiceResponse>- Returns:
- XML element name.
-
validate
protected void validate() throws Exception
Validate request.- Overrides:
validatein classServiceRequestBase<ServiceResponse>- Throws:
Exception- the exception
-
writeElementsToXml
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Writes the elements to XML.- Specified by:
writeElementsToXmlin classServiceRequestBase<ServiceResponse>- Parameters:
writer- the writer- Throws:
Exception- the exception
-
getResponseXmlElementName
protected String getResponseXmlElementName()
Gets the name of the response XML element.- Specified by:
getResponseXmlElementNamein classServiceRequestBase<ServiceResponse>- Returns:
- XML element name
-
parseResponse
protected ServiceResponse parseResponse(EwsServiceXmlReader reader) throws Exception
Parses the response.- Specified by:
parseResponsein classServiceRequestBase<ServiceResponse>- Parameters:
reader- The reader.- Returns:
- the Response Object.
- Throws:
Exception- the exception
-
getMinimumRequiredServerVersion
protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the request version.- Specified by:
getMinimumRequiredServerVersionin classServiceRequestBase<ServiceResponse>- Returns:
- Earliest Exchange version in which this request is supported.
-
execute
public ServiceResponse execute() throws Exception
Executes this request.- Returns:
- Service response
- Throws:
Exception- the exception
-
getSmtpAddress
public 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
-
getOofSettings
public OofSettings getOofSettings()
Gets the oof settings.- Returns:
- the oof settings
-
setOofSettings
public void setOofSettings(OofSettings oofSettings)
Sets the oof settings.- Parameters:
oofSettings- the new oof settings
-
-