Class ResolveNamesResponse
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.response.ServiceResponse
-
- microsoft.exchange.webservices.data.core.response.ResolveNamesResponse
-
public final class ResolveNamesResponse extends ServiceResponse
Represents the response to a name resolution operation.
-
-
Constructor Summary
Constructors Constructor Description ResolveNamesResponse(ExchangeService service)Initializes a new instance of the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NameResolutionCollectiongetResolutions()Gets a list of name resolution suggestions.protected voidinternalThrowIfNecessary()Override base implementation so that API does not throw when name resolution fails to find a match.protected voidreadElementsFromXml(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
-
-
-
-
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:
readElementsFromXmlin classServiceResponse- 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:
internalThrowIfNecessaryin classServiceResponse- Throws:
ServiceResponseException- the service response exception
-
getResolutions
public NameResolutionCollection getResolutions()
Gets a list of name resolution suggestions.- Returns:
- the resolutions
-
-