public class UnsubscribeRequest extends MultiResponseServiceRequest<ServiceResponse>
Constructor and Description |
---|
UnsubscribeRequest(ExchangeService service)
Instantiates a new unsubscribe request.
|
Modifier and Type | Method and Description |
---|---|
protected HttpWebRequest |
buildEwsHttpWebRequest()
Builds the HttpWebRequest object for current service request with exception handling.
|
protected ServiceResponse |
createServiceResponse(ExchangeService service,
int responseIndex)
Creates service response.
|
protected int |
getExpectedResponseMessageCount()
Gets the expected response message count.
|
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the request version.
|
protected String |
getResponseMessageXmlElementName()
Gets the name of the response message XML element.
|
protected String |
getResponseXmlElementName()
Gets the name of the response XML element.
|
String |
getSubscriptionId()
Gets the subscription id.
|
String |
getXmlElementName()
Gets the name of the XML element.
|
void |
setSubscriptionId(String subscriptionId)
Sets the subscription id.
|
protected void |
validate()
Validate the request.
|
protected void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes XML elements.
|
endExecute, execute, getErrorHandlingMode, parseResponse
beginExecute, endInternalExecute, internalExecute
buildEwsHttpPoolingWebRequest, getEwsHttpWebResponse, getResponseStream, getService, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeToXml
public UnsubscribeRequest(ExchangeService service) throws Exception
service
- the serviceException
protected ServiceResponse createServiceResponse(ExchangeService service, int responseIndex)
createServiceResponse
in class MultiResponseServiceRequest<ServiceResponse>
service
- the serviceresponseIndex
- the response indexprotected int getExpectedResponseMessageCount()
getExpectedResponseMessageCount
in class MultiResponseServiceRequest<ServiceResponse>
public String getXmlElementName()
getXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
protected String getResponseXmlElementName()
getResponseXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
protected String getResponseMessageXmlElementName()
getResponseMessageXmlElementName
in class MultiResponseServiceRequest<ServiceResponse>
protected void validate() throws ServiceLocalException, Exception
validate
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
ServiceLocalException
- the service local exceptionException
- the exceptionprotected void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
writeElementsToXml
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
writer
- the writerXMLStreamException
- the XML stream exceptionServiceXmlSerializationException
- the service xml serialization exceptionprotected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
public String getSubscriptionId()
public void setSubscriptionId(String subscriptionId)
subscriptionId
- the new subscription idprotected HttpWebRequest buildEwsHttpWebRequest() throws Exception
ServiceRequestBase
buildEwsHttpWebRequest
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
Exception
- on errorCopyright © 2012–2015 Microsoft. All rights reserved.