Class ExecuteDiagnosticMethodRequest
- 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<ExecuteDiagnosticMethodResponse>
-
- microsoft.exchange.webservices.data.core.request.ExecuteDiagnosticMethodRequest
-
public final class ExecuteDiagnosticMethodRequest extends MultiResponseServiceRequest<ExecuteDiagnosticMethodResponse>
Defines the ExecuteDiagnosticMethodRequest class.
-
-
Constructor Summary
Constructors Constructor Description ExecuteDiagnosticMethodRequest(ExchangeService service)Initializes a new instance of the ExecuteDiagnosticMethodRequest class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExecuteDiagnosticMethodResponsecreateServiceResponse(ExchangeService service, int responseIndex)Creates the service response.protected intgetExpectedResponseMessageCount()Gets the expected response message count.protected ExchangeVersiongetMinimumRequiredServerVersion()Gets the request version.protected NodegetParameter()Gets the parameter to the executing method.protected StringgetResponseMessageXmlElementName()Gets the name of the response message XML element.protected StringgetResponseXmlElementName()Gets the name of the response XML element.protected StringgetVerb()Gets the verb of the method to execute.StringgetXmlElementName()Gets the name of the XML element.voidsetParameter(Node value)Sets the parameter to the executing method.voidsetVerb(String value)Sets the verb of the method to execute.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, validate, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeToXml
-
-
-
-
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:
getXmlElementNamein classServiceRequestBase<ServiceResponseCollection<ExecuteDiagnosticMethodResponse>>- Returns:
- XmlElementNames
-
writeElementsToXml
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, XMLStreamException
Writes XML elements.- Specified by:
writeElementsToXmlin classServiceRequestBase<ServiceResponseCollection<ExecuteDiagnosticMethodResponse>>- Parameters:
writer- The writer- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException
-
getResponseXmlElementName
protected String getResponseXmlElementName()
Gets the name of the response XML element.- Specified by:
getResponseXmlElementNamein classServiceRequestBase<ServiceResponseCollection<ExecuteDiagnosticMethodResponse>>- Returns:
- XML element name
-
getMinimumRequiredServerVersion
protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the request version.- Specified by:
getMinimumRequiredServerVersionin classServiceRequestBase<ServiceResponseCollection<ExecuteDiagnosticMethodResponse>>- Returns:
- Earliest Exchange version in which this request is supported.
-
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:
createServiceResponsein classMultiResponseServiceRequest<ExecuteDiagnosticMethodResponse>- Parameters:
service- The serviceresponseIndex- Index of the response- Returns:
- Service response
-
getResponseMessageXmlElementName
protected String getResponseMessageXmlElementName()
Gets the name of the response message XML element.- Specified by:
getResponseMessageXmlElementNamein classMultiResponseServiceRequest<ExecuteDiagnosticMethodResponse>- Returns:
- XmlElementNames
-
getExpectedResponseMessageCount
protected int getExpectedResponseMessageCount()
Gets the expected response message count.- Specified by:
getExpectedResponseMessageCountin classMultiResponseServiceRequest<ExecuteDiagnosticMethodResponse>- Returns:
- Number of expected response messages.
-
-