Class GetServerTimeZonesRequest
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
-
- microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<ServiceResponseCollection<TResponse>>
-
- microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest<GetServerTimeZonesResponse>
-
- microsoft.exchange.webservices.data.core.request.GetServerTimeZonesRequest
-
public final class GetServerTimeZonesRequest extends MultiResponseServiceRequest<GetServerTimeZonesResponse>
Represents a GetServerTimeZones request.
-
-
Constructor Summary
Constructors Constructor Description GetServerTimeZonesRequest(ExchangeService service)Initializes a new instance of the "GetServerTimeZonesRequest" class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GetServerTimeZonesResponsecreateServiceResponse(ExchangeService service, int responseIndex)Creates the service response.protected intgetExpectedResponseMessageCount()Gets the expected response message count.protected Iterable<String>getIds()Gets the ids of the time zones that should be returned by the server.protected ExchangeVersiongetMinimumRequiredServerVersion()Gets the minimum server version required to process this request.protected StringgetResponseMessageXmlElementName()Gets the name of the response message XML element.protected StringgetResponseXmlElementName()Gets the name of the response XML element.StringgetXmlElementName()Gets the name of the XML element.protected voidsetIds(Iterable<String> ids)Sets the ids.protected voidvalidate()Gets the XML element name associated with the transition.protected voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes XML elements.-
Methods inherited from class microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest
endExecute, execute, getErrorHandlingMode, parseResponse
-
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
-
GetServerTimeZonesRequest
public GetServerTimeZonesRequest(ExchangeService service) throws Exception
Initializes a new instance of the "GetServerTimeZonesRequest" class.- Parameters:
service- the service- Throws:
Exception
-
-
Method Detail
-
validate
protected void validate() throws Exception
Gets the XML element name associated with the transition.- Overrides:
validatein classServiceRequestBase<ServiceResponseCollection<GetServerTimeZonesResponse>>- Throws:
Exception- the exception
-
createServiceResponse
protected GetServerTimeZonesResponse createServiceResponse(ExchangeService service, int responseIndex)
Creates the service response.- Specified by:
createServiceResponsein classMultiResponseServiceRequest<GetServerTimeZonesResponse>- Parameters:
service- the serviceresponseIndex- the response index- Returns:
- Service response.
-
getResponseMessageXmlElementName
protected String getResponseMessageXmlElementName()
Gets the name of the response message XML element.- Specified by:
getResponseMessageXmlElementNamein classMultiResponseServiceRequest<GetServerTimeZonesResponse>- Returns:
- XML element name,
-
getExpectedResponseMessageCount
protected int getExpectedResponseMessageCount()
Gets the expected response message count.- Specified by:
getExpectedResponseMessageCountin classMultiResponseServiceRequest<GetServerTimeZonesResponse>- Returns:
- Number of expected response messages.
-
getXmlElementName
public String getXmlElementName()
Gets the name of the XML element.- Specified by:
getXmlElementNamein classServiceRequestBase<ServiceResponseCollection<GetServerTimeZonesResponse>>- Returns:
- XML element name,
-
getResponseXmlElementName
protected String getResponseXmlElementName()
Gets the name of the response XML element.- Specified by:
getResponseXmlElementNamein classServiceRequestBase<ServiceResponseCollection<GetServerTimeZonesResponse>>- Returns:
- XML element name,
-
getMinimumRequiredServerVersion
protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the minimum server version required to process this request.- Specified by:
getMinimumRequiredServerVersionin classServiceRequestBase<ServiceResponseCollection<GetServerTimeZonesResponse>>- Returns:
- Exchange server version.
-
writeElementsToXml
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, XMLStreamException
Writes XML elements.- Specified by:
writeElementsToXmlin classServiceRequestBase<ServiceResponseCollection<GetServerTimeZonesResponse>>- Parameters:
writer- the writer- Throws:
ServiceXmlSerializationException- the service xml serialization exceptionXMLStreamException- the XML stream exception
-
getIds
protected Iterable<String> getIds()
Gets the ids of the time zones that should be returned by the server.- Returns:
- the ids
-
-