public final class FindFolderRequest extends MultiResponseServiceRequest<TResponse>
Constructor and Description |
---|
FindFolderRequest(ExchangeService exchangeService,
ServiceErrorHandling errorHandlingMode)
Initializes a new instance of the FindFolderRequest class.
|
Modifier and Type | Method and Description |
---|---|
protected FindFolderResponse |
createServiceResponse(ExchangeService service,
int responseIndex)
Creates the service response.
|
protected int |
getExpectedResponseMessageCount()
Gets the expected response message count.
|
protected Grouping |
getGroupBy()
Gets the group by clause.
|
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the request version.
|
FolderIdWrapperList |
getParentFolderIds()
Gets the parent folder ids.
|
String |
getQueryString()
Gets the query string for indexed search.
|
protected String |
getResponseMessageXmlElementName()
Gets the name of the response message XML element.
|
protected String |
getResponseXmlElementName()
Gets the name of the response XML element.
|
SearchFilter |
getSearchFilter()
Gets the search filter.
|
ViewBase |
getView()
Gets the view controlling the number of item or folder returned.
|
String |
getXmlElementName()
Gets the name of the XML element.
|
void |
setQueryString(String queryString)
Sets the query string for indexed search.
|
void |
setSearchFilter(SearchFilter searchFilter)
Sets the search filter.
|
void |
setView(ViewBase view)
Sets the view controlling the number of item or folder returned.
|
protected void |
validate()
Validate request.
|
protected void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes XML attribute.
|
protected void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes XML elements.
|
endExecute, execute, getErrorHandlingMode, parseResponse
beginExecute, endInternalExecute, internalExecute
buildEwsHttpPoolingWebRequest, buildEwsHttpWebRequest, getEwsHttpWebResponse, getResponseStream, getService, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validateAndEmitRequest, writeBodyToXml, writeToXml
public FindFolderRequest(ExchangeService exchangeService, ServiceErrorHandling errorHandlingMode) throws Exception
exchangeService
- The ServiceerrorHandlingMode
- Indicates how errors should be handled.Exception
protected FindFolderResponse createServiceResponse(ExchangeService service, int responseIndex)
createServiceResponse
in class MultiResponseServiceRequest<FindFolderResponse>
service
- The serviceresponseIndex
- Index of the response. Service response.public String getXmlElementName()
getXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<FindFolderResponse>>
protected String getResponseXmlElementName()
getResponseXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<FindFolderResponse>>
protected String getResponseMessageXmlElementName()
getResponseMessageXmlElementName
in class MultiResponseServiceRequest<FindFolderResponse>
protected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class ServiceRequestBase<ServiceResponseCollection<FindFolderResponse>>
protected void validate() throws ServiceLocalException, Exception
validate
in class ServiceRequestBase<ServiceResponseCollection<TResponse extends ServiceResponse>>
ServiceLocalException
- the service local exceptionException
- the exceptionprotected int getExpectedResponseMessageCount()
getExpectedResponseMessageCount
in class MultiResponseServiceRequest<TResponse extends ServiceResponse>
protected Grouping getGroupBy()
protected void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeAttributesToXml
in class ServiceRequestBase<ServiceResponseCollection<TResponse extends ServiceResponse>>
writer
- The WriterServiceXmlSerializationException
- the service xml serialization exceptionprotected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml
in class ServiceRequestBase<ServiceResponseCollection<TResponse extends ServiceResponse>>
writer
- The WriterException
- the exceptionpublic FolderIdWrapperList getParentFolderIds()
public SearchFilter getSearchFilter()
public void setSearchFilter(SearchFilter searchFilter)
searchFilter
- the new search filterpublic String getQueryString()
public void setQueryString(String queryString)
queryString
- the new query stringpublic ViewBase getView()
Copyright © 2012–2015 Microsoft. All rights reserved.