microsoft.exchange.webservices.data.core.response
Class ResolveNamesResponse

java.lang.Object
  extended by microsoft.exchange.webservices.data.core.response.ServiceResponse
      extended by microsoft.exchange.webservices.data.core.response.ResolveNamesResponse

public final class ResolveNamesResponse
extends ServiceResponse

Represents the response to a name resolution operation.


Constructor Summary
ResolveNamesResponse(ExchangeService service)
          Initializes a new instance of the class.
 
Method Summary
 NameResolutionCollection getResolutions()
          Gets a list of name resolution suggestions.
protected  void internalThrowIfNecessary()
          Override base implementation so that API does not throw when name resolution fails to find a match.
protected  void readElementsFromXml(EwsServiceXmlReader reader)
          Reads response elements from XML.
 
Methods inherited from class microsoft.exchange.webservices.data.core.response.ServiceResponse
getBatchProcessingStopped, getErrorCode, getErrorDetails, getErrorMessage, getErrorProperties, getResult, loaded, loadExtraErrorDetailsFromXml, loadFromXml, mapErrorCodeToErrorMessage, parseMessageXml, setErrorMessage, throwIfNecessary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResolveNamesResponse

public ResolveNamesResponse(ExchangeService service)
Initializes a new instance of the class.

Parameters:
service - the service
Method Detail

readElementsFromXml

protected void readElementsFromXml(EwsServiceXmlReader reader)
                            throws Exception
Reads response elements from XML.

Overrides:
readElementsFromXml in class ServiceResponse
Parameters:
reader - the reader
Throws:
Exception - the exception

internalThrowIfNecessary

protected void internalThrowIfNecessary()
                                 throws ServiceResponseException
Override base implementation so that API does not throw when name resolution fails to find a match. EWS returns an error in this case but the API will just return an empty NameResolutionCollection.

Overrides:
internalThrowIfNecessary in class ServiceResponse
Throws:
ServiceResponseException - the service response exception

getResolutions

public NameResolutionCollection getResolutions()
Gets a list of name resolution suggestions.

Returns:
the resolutions


Copyright © 2012–2015 Microsoft. All rights reserved.