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

java.lang.Object
  extended by microsoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
      extended by microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<GetInboxRulesResponse>
          extended by microsoft.exchange.webservices.data.core.request.GetInboxRulesRequest

public final class GetInboxRulesRequest
extends SimpleServiceRequestBase<GetInboxRulesResponse>

Represents a GetInboxRules request.


Constructor Summary
GetInboxRulesRequest(ExchangeService service)
          Initializes a new instance of the GetInboxRulesRequest class.
 
Method Summary
 GetInboxRulesResponse execute()
          Executes this request.
protected  String getmailboxSmtpAddress()
          Gets or sets the address of the mailbox from which to get the inbox rules.
protected  ExchangeVersion getMinimumRequiredServerVersion()
          Gets the request version.
protected  String getResponseXmlElementName()
          Gets the name of the response XML element.
 String getXmlElementName()
          Gets the name of the XML element.
protected  GetInboxRulesResponse parseResponse(EwsServiceXmlReader reader)
          Parses the response.
 void setmailboxSmtpAddress(String value)
          sets the address of the mailbox from which to get the inbox rules.
protected  void writeElementsToXml(EwsServiceXmlWriter writer)
          Writes XML elements.
 
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

GetInboxRulesRequest

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

Parameters:
service - The service.
Throws:
Exception
Method Detail

getmailboxSmtpAddress

protected String getmailboxSmtpAddress()
Gets or sets the address of the mailbox from which to get the inbox rules.

Returns:
the mailboxSmtpAddress

setmailboxSmtpAddress

public void setmailboxSmtpAddress(String value)
sets the address of the mailbox from which to get the inbox rules.


getXmlElementName

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

Specified by:
getXmlElementName in class ServiceRequestBase<GetInboxRulesResponse>
Returns:
XML element name.

writeElementsToXml

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

Specified by:
writeElementsToXml in class ServiceRequestBase<GetInboxRulesResponse>
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<GetInboxRulesResponse>
Returns:
XML element name.

parseResponse

protected GetInboxRulesResponse parseResponse(EwsServiceXmlReader reader)
                                       throws Exception
Parses the response.

Specified by:
parseResponse in class ServiceRequestBase<GetInboxRulesResponse>
Parameters:
reader - The reader.
Returns:
the Response Object.
Throws:
Exception - the exception

getMinimumRequiredServerVersion

protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the request version.

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

execute

public GetInboxRulesResponse execute()
                              throws ServiceLocalException,
                                     Exception
Executes this request.

Returns:
Service response.
Throws:
Exception
ServiceLocalException


Copyright © 2012–2015 Microsoft. All rights reserved.