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

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

public final class SetUserOofSettingsRequest
extends SimpleServiceRequestBase<ServiceResponse>

Represents a SetUserOofSettings request.


Constructor Summary
SetUserOofSettingsRequest(ExchangeService service)
          Initializes a new instance of the class.
 
Method Summary
 ServiceResponse execute()
          Executes this request.
protected  ExchangeVersion getMinimumRequiredServerVersion()
          Gets the request version.
 OofSettings getOofSettings()
          Gets the oof settings.
protected  String getResponseXmlElementName()
          Gets the name of the response XML element.
 String getSmtpAddress()
          Gets the SMTP address.
 String getXmlElementName()
          Gets the name of the XML element.
protected  ServiceResponse parseResponse(EwsServiceXmlReader reader)
          Parses the response.
 void setOofSettings(OofSettings oofSettings)
          Sets the oof settings.
 void setSmtpAddress(String smtpAddress)
          Sets the smtp address.
protected  void validate()
          Validate request.
protected  void writeElementsToXml(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
getXmlElementName in class ServiceRequestBase<ServiceResponse>
Returns:
XML element name.

validate

protected void validate()
                 throws Exception
Validate request.

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

writeElementsToXml

protected void writeElementsToXml(EwsServiceXmlWriter writer)
                           throws Exception
Writes the elements to XML.

Specified by:
writeElementsToXml in class ServiceRequestBase<ServiceResponse>
Parameters:
writer - the writer
Throws:
Exception - the exception

getResponseXmlElementName

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

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

parseResponse

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

Specified by:
parseResponse in class ServiceRequestBase<ServiceResponse>
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<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


Copyright © 2012–2015 Microsoft. All rights reserved.