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

java.lang.Object
  extended by microsoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
      extended by microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<ServiceResponseCollection<TResponse>>
          extended by microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest<GetServerTimeZonesResponse>
              extended by microsoft.exchange.webservices.data.core.request.GetServerTimeZonesRequest

public final class GetServerTimeZonesRequest
extends MultiResponseServiceRequest<GetServerTimeZonesResponse>

Represents a GetServerTimeZones request.


Constructor Summary
GetServerTimeZonesRequest(ExchangeService service)
          Initializes a new instance of the "GetServerTimeZonesRequest" class.
 
Method Summary
protected  GetServerTimeZonesResponse createServiceResponse(ExchangeService service, int responseIndex)
          Creates the service response.
protected  int getExpectedResponseMessageCount()
          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  ExchangeVersion getMinimumRequiredServerVersion()
          Gets the minimum server version required to process this request.
protected  String getResponseMessageXmlElementName()
          Gets the name of the response message XML element.
protected  String getResponseXmlElementName()
          Gets the name of the response XML element.
 String getXmlElementName()
          Gets the name of the XML element.
protected  void setIds(Iterable<String> ids)
          Sets the ids.
protected  void validate()
          Gets the XML element name associated with the transition.
protected  void writeElementsToXml(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
validate in class ServiceRequestBase<ServiceResponseCollection<GetServerTimeZonesResponse>>
Throws:
Exception - the exception

createServiceResponse

protected GetServerTimeZonesResponse createServiceResponse(ExchangeService service,
                                                           int responseIndex)
Creates the service response.

Specified by:
createServiceResponse in class MultiResponseServiceRequest<GetServerTimeZonesResponse>
Parameters:
service - the service
responseIndex - the response index
Returns:
Service response.

getResponseMessageXmlElementName

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

Specified by:
getResponseMessageXmlElementName in class MultiResponseServiceRequest<GetServerTimeZonesResponse>
Returns:
XML element name,

getExpectedResponseMessageCount

protected int getExpectedResponseMessageCount()
Gets the expected response message count.

Specified by:
getExpectedResponseMessageCount in class MultiResponseServiceRequest<GetServerTimeZonesResponse>
Returns:
Number of expected response messages.

getXmlElementName

public String getXmlElementName()
Gets the name of the XML element.

Specified by:
getXmlElementName in class ServiceRequestBase<ServiceResponseCollection<GetServerTimeZonesResponse>>
Returns:
XML element name,

getResponseXmlElementName

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

Specified by:
getResponseXmlElementName in class ServiceRequestBase<ServiceResponseCollection<GetServerTimeZonesResponse>>
Returns:
XML element name,

getMinimumRequiredServerVersion

protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the minimum server version required to process this request.

Specified by:
getMinimumRequiredServerVersion in class ServiceRequestBase<ServiceResponseCollection<GetServerTimeZonesResponse>>
Returns:
Exchange server version.

writeElementsToXml

protected void writeElementsToXml(EwsServiceXmlWriter writer)
                           throws ServiceXmlSerializationException,
                                  XMLStreamException
Writes XML elements.

Specified by:
writeElementsToXml in class ServiceRequestBase<ServiceResponseCollection<GetServerTimeZonesResponse>>
Parameters:
writer - the writer
Throws:
ServiceXmlSerializationException - the service xml serialization exception
XMLStreamException - 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

setIds

protected void setIds(Iterable<String> ids)
Sets the ids.

Parameters:
ids - the new ids


Copyright © 2012–2015 Microsoft. All rights reserved.