public class GetEventsRequest extends MultiResponseServiceRequest<GetEventsResponse>
Constructor and Description |
---|
GetEventsRequest(ExchangeService service)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected GetEventsResponse |
createServiceResponse(ExchangeService service,
int responseIndex)
Creates the 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 subscriptionId.
|
String |
getWatermark()
gets the watermark.
|
String |
getXmlElementName()
Gets the name of the XML element.
|
void |
setSubscriptionId(String subscriptionId)
Sets the subscriptionId.
|
void |
setWatermark(String watermark)
Sets the watermark.
|
protected void |
validate()
Validates the request.
|
protected void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes the elements to XML writer.
|
endExecute, execute, getErrorHandlingMode, parseResponse
beginExecute, endInternalExecute, internalExecute
buildEwsHttpPoolingWebRequest, buildEwsHttpWebRequest, getEwsHttpWebResponse, getResponseStream, getService, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeToXml
public GetEventsRequest(ExchangeService service) throws Exception
service
- the serviceException
protected GetEventsResponse createServiceResponse(ExchangeService service, int responseIndex)
createServiceResponse
in class MultiResponseServiceRequest<GetEventsResponse>
service
- the serviceresponseIndex
- the response indexprotected int getExpectedResponseMessageCount()
getExpectedResponseMessageCount
in class MultiResponseServiceRequest<GetEventsResponse>
public String getXmlElementName()
getXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<GetEventsResponse>>
protected String getResponseXmlElementName()
getResponseXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<GetEventsResponse>>
protected String getResponseMessageXmlElementName()
getResponseMessageXmlElementName
in class MultiResponseServiceRequest<GetEventsResponse>
protected void validate() throws Exception
validate
in class ServiceRequestBase<ServiceResponseCollection<GetEventsResponse>>
Exception
- the exceptionprotected void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
writeElementsToXml
in class ServiceRequestBase<ServiceResponseCollection<GetEventsResponse>>
writer
- the writerXMLStreamException
- the XML stream exceptionServiceXmlSerializationException
- the service xml serialization exceptionprotected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class ServiceRequestBase<ServiceResponseCollection<GetEventsResponse>>
public String getSubscriptionId()
public void setSubscriptionId(String subscriptionId)
subscriptionId
- the subscriptionId.public String getWatermark()
public void setWatermark(String watermark)
watermark
- the new watermarkCopyright © 2012–2015 Microsoft. All rights reserved.