Class GetInboxRulesRequest
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
-
- microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<GetInboxRulesResponse>
-
- microsoft.exchange.webservices.data.core.request.GetInboxRulesRequest
-
public final class GetInboxRulesRequest extends SimpleServiceRequestBase<GetInboxRulesResponse>
Represents a GetInboxRules request.
-
-
Constructor Summary
Constructors Constructor Description GetInboxRulesRequest(ExchangeService service)Initializes a new instance of the GetInboxRulesRequest class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetInboxRulesResponseexecute()Executes this request.protected StringgetmailboxSmtpAddress()Gets or sets the address of the mailbox from which to get the inbox rules.protected ExchangeVersiongetMinimumRequiredServerVersion()Gets the request version.protected StringgetResponseXmlElementName()Gets the name of the response XML element.StringgetXmlElementName()Gets the name of the XML element.protected GetInboxRulesResponseparseResponse(EwsServiceXmlReader reader)Parses the response.voidsetmailboxSmtpAddress(String value)sets the address of the mailbox from which to get the inbox rules.protected voidwriteElementsToXml(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
-
-
-
-
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:
getXmlElementNamein classServiceRequestBase<GetInboxRulesResponse>- Returns:
- XML element name.
-
writeElementsToXml
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, XMLStreamException
Writes XML elements.- Specified by:
writeElementsToXmlin classServiceRequestBase<GetInboxRulesResponse>- 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<GetInboxRulesResponse>- Returns:
- XML element name.
-
parseResponse
protected GetInboxRulesResponse parseResponse(EwsServiceXmlReader reader) throws Exception
Parses the response.- Specified by:
parseResponsein classServiceRequestBase<GetInboxRulesResponse>- Parameters:
reader- The reader.- Returns:
- the Response Object.
- Throws:
Exception- the exception
-
getMinimumRequiredServerVersion
protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the request version.- Specified by:
getMinimumRequiredServerVersionin classServiceRequestBase<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:
ExceptionServiceLocalException
-
-