microsoft.exchange.webservices.data
Class AutodiscoverResponse

java.lang.Object
  extended by microsoft.exchange.webservices.data.AutodiscoverResponse
Direct Known Subclasses:
AutodiscoverResponseCollection, GetDomainSettingsResponse, GetUserSettingsResponse

public abstract class AutodiscoverResponse
extends java.lang.Object

Represents the base class for all responses returned by the Autodiscover service.


Method Summary
 AutodiscoverErrorCode getErrorCode()
          Gets the error code that was returned by the service.
 java.lang.String getErrorMessage()
          Gets the error message that was returned by the service.
protected  java.net.URI getRedirectionUrl()
          Gets the redirection URL.
protected  void loadFromXml(microsoft.exchange.webservices.data.EwsXmlReader reader, java.lang.String endElementName)
          * Initializes a new instance of the AutodiscoverResponse class.
protected  void setErrorCode(AutodiscoverErrorCode errorCode)
          Sets the error code.
protected  void setErrorMessage(java.lang.String errorMessage)
          Sets the error message.
protected  void setRedirectionUrl(java.net.URI redirectionUrl)
          Sets the redirection url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadFromXml

protected void loadFromXml(microsoft.exchange.webservices.data.EwsXmlReader reader,
                           java.lang.String endElementName)
                    throws java.lang.Exception
* Initializes a new instance of the AutodiscoverResponse class.

Parameters:
reader - the reader
endElementName - the end element name
Throws:
java.lang.Exception - the exception

getErrorCode

public AutodiscoverErrorCode getErrorCode()
Gets the error code that was returned by the service.

Returns:
the error code

setErrorCode

protected void setErrorCode(AutodiscoverErrorCode errorCode)
Sets the error code.

Parameters:
errorCode - the new error code

getErrorMessage

public java.lang.String getErrorMessage()
Gets the error message that was returned by the service.

Returns:
the error message

setErrorMessage

protected void setErrorMessage(java.lang.String errorMessage)
Sets the error message.

Parameters:
errorMessage - the new error message

getRedirectionUrl

protected java.net.URI getRedirectionUrl()
Gets the redirection URL.

Returns:
the redirection url

setRedirectionUrl

protected void setRedirectionUrl(java.net.URI redirectionUrl)
Sets the redirection url.

Parameters:
redirectionUrl - the new redirection url