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

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<ExecuteDiagnosticMethodResponse>
              extended by microsoft.exchange.webservices.data.core.request.ExecuteDiagnosticMethodRequest

public final class ExecuteDiagnosticMethodRequest
extends MultiResponseServiceRequest<ExecuteDiagnosticMethodResponse>

Defines the ExecuteDiagnosticMethodRequest class.


Constructor Summary
ExecuteDiagnosticMethodRequest(ExchangeService service)
          Initializes a new instance of the ExecuteDiagnosticMethodRequest class.
 
Method Summary
protected  ExecuteDiagnosticMethodResponse 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  Node getParameter()
          Gets the parameter to the executing method.
protected  String getResponseMessageXmlElementName()
          Gets the name of the response message XML element.
protected  String getResponseXmlElementName()
          Gets the name of the response XML element.
protected  String getVerb()
          Gets the verb of the method to execute.
 String getXmlElementName()
          Gets the name of the XML element.
 void setParameter(Node value)
          Sets the parameter to the executing method.
 void setVerb(String value)
          Sets the verb of the method to execute.
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, validate, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecuteDiagnosticMethodRequest

public ExecuteDiagnosticMethodRequest(ExchangeService service)
                               throws Exception
Initializes a new instance of the ExecuteDiagnosticMethodRequest class.

Throws:
Exception
Method Detail

getXmlElementName

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

Specified by:
getXmlElementName in class ServiceRequestBase<ServiceResponseCollection<ExecuteDiagnosticMethodResponse>>
Returns:
XmlElementNames

writeElementsToXml

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

Specified by:
writeElementsToXml in class ServiceRequestBase<ServiceResponseCollection<ExecuteDiagnosticMethodResponse>>
Parameters:
writer - The writer
Throws:
XMLStreamException - the XML stream exception
ServiceXmlSerializationException

getResponseXmlElementName

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

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

getMinimumRequiredServerVersion

protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the request version.

Specified by:
getMinimumRequiredServerVersion in class ServiceRequestBase<ServiceResponseCollection<ExecuteDiagnosticMethodResponse>>
Returns:
Earliest Exchange version in which this request is supported.

getVerb

protected String getVerb()
Gets the verb of the method to execute.


setVerb

public void setVerb(String value)
Sets the verb of the method to execute.


getParameter

protected Node getParameter()
Gets the parameter to the executing method.


setParameter

public void setParameter(Node value)
Sets the parameter to the executing method.


createServiceResponse

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

Specified by:
createServiceResponse in class MultiResponseServiceRequest<ExecuteDiagnosticMethodResponse>
Parameters:
service - The service
responseIndex - Index of the response
Returns:
Service response

getResponseMessageXmlElementName

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

Specified by:
getResponseMessageXmlElementName in class MultiResponseServiceRequest<ExecuteDiagnosticMethodResponse>
Returns:
XmlElementNames

getExpectedResponseMessageCount

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

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


Copyright © 2012–2015 Microsoft. All rights reserved.