Class AutodiscoverResponseCollection<TResponse extends AutodiscoverResponse>
- java.lang.Object
-
- microsoft.exchange.webservices.data.autodiscover.response.AutodiscoverResponse
-
- microsoft.exchange.webservices.data.autodiscover.AutodiscoverResponseCollection<TResponse>
-
- Type Parameters:
TResponse- The type of the response in the collection.
- All Implemented Interfaces:
Iterable<TResponse>
- Direct Known Subclasses:
GetDomainSettingsResponseCollection,GetUserSettingsResponseCollection
public abstract class AutodiscoverResponseCollection<TResponse extends AutodiscoverResponse> extends AutodiscoverResponse implements Iterable<TResponse>
Represents a collection of response to a call to the Autodiscover service.
-
-
Constructor Summary
Constructors Constructor Description AutodiscoverResponseCollection()Initializes a new instance of the AutodiscoverResponseCollection class.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract TResponsecreateResponseInstance()Create a response instance.intgetCount()Gets the number of response in the collection.protected abstract StringgetResponseCollectionXmlElementName()Gets the name of the response collection XML element.protected abstract StringgetResponseInstanceXmlElementName()Gets the name of the response instance XML element.List<TResponse>getResponses()Gets the response.TResponsegetTResponseAtIndex(int index)Gets the response at the specified index.Iterator<TResponse>iterator()Gets an Iterator that iterates through the elements of the collection.voidloadFromXml(EwsXmlReader reader, String endElementName)Loads response from XML.-
Methods inherited from class microsoft.exchange.webservices.data.autodiscover.response.AutodiscoverResponse
getErrorCode, getErrorMessage, getRedirectionUrl, setErrorCode, setErrorMessage, setRedirectionUrl
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
AutodiscoverResponseCollection
public AutodiscoverResponseCollection()
Initializes a new instance of the AutodiscoverResponseCollection class.
-
-
Method Detail
-
getCount
public int getCount()
Gets the number of response in the collection.- Returns:
- the count
-
getTResponseAtIndex
public TResponse getTResponseAtIndex(int index)
Gets the response at the specified index.- Parameters:
index- the index- Returns:
- the t response at index
-
getResponses
public List<TResponse> getResponses()
Gets the response.- Returns:
- the response
-
loadFromXml
public void loadFromXml(EwsXmlReader reader, String endElementName) throws Exception
Loads response from XML.- Overrides:
loadFromXmlin classAutodiscoverResponse- Parameters:
reader- the readerendElementName- End element name.- Throws:
Exception- the exception
-
getResponseCollectionXmlElementName
protected abstract String getResponseCollectionXmlElementName()
Gets the name of the response collection XML element.- Returns:
- Response collection XMl element name.
-
getResponseInstanceXmlElementName
protected abstract String getResponseInstanceXmlElementName()
Gets the name of the response instance XML element.- Returns:
- Response collection XMl element name.
-
createResponseInstance
protected abstract TResponse createResponseInstance()
Create a response instance.- Returns:
- TResponse.
-
-