TResponse - The type of the response in the collection.public abstract class AutodiscoverResponseCollection<TResponse extends AutodiscoverResponse> extends AutodiscoverResponse implements Iterable<TResponse>
| Constructor and Description |
|---|
AutodiscoverResponseCollection()
Initializes a new instance of the AutodiscoverResponseCollection class.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract TResponse |
createResponseInstance()
Create a response instance.
|
int |
getCount()
Gets the number of response in the collection.
|
protected abstract String |
getResponseCollectionXmlElementName()
Gets the name of the response collection XML element.
|
protected abstract String |
getResponseInstanceXmlElementName()
Gets the name of the response instance XML element.
|
List<TResponse> |
getResponses()
Gets the response.
|
TResponse |
getTResponseAtIndex(int index)
Gets the response at the specified index.
|
Iterator<TResponse> |
iterator()
Gets an Iterator that iterates through the elements of the collection.
|
void |
loadFromXml(EwsXmlReader reader,
String endElementName)
Loads response from XML.
|
getErrorCode, getErrorMessage, getRedirectionUrl, setErrorCode, setErrorMessage, setRedirectionUrlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic AutodiscoverResponseCollection()
public int getCount()
public TResponse getTResponseAtIndex(int index)
index - the indexpublic List<TResponse> getResponses()
public void loadFromXml(EwsXmlReader reader, String endElementName) throws Exception
loadFromXml in class AutodiscoverResponsereader - the readerendElementName - End element name.Exception - the exceptionprotected abstract String getResponseCollectionXmlElementName()
protected abstract String getResponseInstanceXmlElementName()
protected abstract TResponse createResponseInstance()
Copyright © 2012–2015 Microsoft. All rights reserved.