Class PlayOnPhoneRequest
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
-
- microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<PlayOnPhoneResponse>
-
- microsoft.exchange.webservices.data.core.request.PlayOnPhoneRequest
-
public final class PlayOnPhoneRequest extends SimpleServiceRequestBase<PlayOnPhoneResponse>
Represents a PlayOnPhone request.
-
-
Constructor Summary
Constructors Constructor Description PlayOnPhoneRequest(ExchangeService service)Initializes a new instance of the PlayOnPhoneRequest class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlayOnPhoneResponseexecute()Executes this request.protected StringgetDialString()Gets the dial string.protected ItemIdgetItemId()Gets the item id of the message to play.protected ExchangeVersiongetMinimumRequiredServerVersion()Gets the request version.protected StringgetResponseXmlElementName()Gets the name of the response XML element.StringgetXmlElementName()Gets the name of the XML element.protected PlayOnPhoneResponseparseResponse(EwsServiceXmlReader reader)Parses the response.voidsetDialString(String dialString)Sets the dial string.voidsetItemId(ItemId itemId)Sets the item id.protected voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes XML elements.-
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, validate, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeToXml
-
-
-
-
Constructor Detail
-
PlayOnPhoneRequest
public PlayOnPhoneRequest(ExchangeService service) throws Exception
Initializes a new instance of the PlayOnPhoneRequest class.- Parameters:
service- the service- Throws:
Exception
-
-
Method Detail
-
getXmlElementName
public String getXmlElementName()
Gets the name of the XML element.- Specified by:
getXmlElementNamein classServiceRequestBase<PlayOnPhoneResponse>- Returns:
- XML element name.
-
writeElementsToXml
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Writes XML elements.- Specified by:
writeElementsToXmlin classServiceRequestBase<PlayOnPhoneResponse>- Parameters:
writer- the writer- Throws:
Exception- the exception
-
getResponseXmlElementName
protected String getResponseXmlElementName()
Gets the name of the response XML element.- Specified by:
getResponseXmlElementNamein classServiceRequestBase<PlayOnPhoneResponse>- Returns:
- XML element name,
-
parseResponse
protected PlayOnPhoneResponse parseResponse(EwsServiceXmlReader reader) throws Exception
Parses the response.- Specified by:
parseResponsein classServiceRequestBase<PlayOnPhoneResponse>- Parameters:
reader- The reader.- Returns:
- the Response Object.
- Throws:
Exception- the exception
-
getMinimumRequiredServerVersion
protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the request version.- Specified by:
getMinimumRequiredServerVersionin classServiceRequestBase<PlayOnPhoneResponse>- Returns:
- Earliest Exchange version in which this request is supported.
-
execute
public PlayOnPhoneResponse execute() throws Exception
Executes this request.- Returns:
- Service response.
- Throws:
Exception- the exception
-
getItemId
protected ItemId getItemId()
Gets the item id of the message to play.- Returns:
- the item id
-
setItemId
public void setItemId(ItemId itemId)
Sets the item id.- Parameters:
itemId- the new item id
-
getDialString
protected String getDialString()
Gets the dial string.- Returns:
- the dial string
-
setDialString
public void setDialString(String dialString)
Sets the dial string.- Parameters:
dialString- the new dial string
-
-