microsoft.exchange.webservices.data.autodiscover.response
Class AutodiscoverResponse

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

public abstract class AutodiscoverResponse
extends Object

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


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

Constructor Detail

AutodiscoverResponse

public AutodiscoverResponse()
Initializes a new instance of the AutodiscoverResponse class.

Method Detail

loadFromXml

public void loadFromXml(EwsXmlReader reader,
                        String endElementName)
                 throws Exception
Initializes a new instance of the AutodiscoverResponse class.

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

getErrorCode

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

Returns:
the error code

setErrorCode

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

Parameters:
errorCode - the new error code

getErrorMessage

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

Returns:
the error message

setErrorMessage

public void setErrorMessage(String errorMessage)
Sets the error message.

Parameters:
errorMessage - the new error message

getRedirectionUrl

public URI getRedirectionUrl()
Gets the redirection URL.

Returns:
the redirection url

setRedirectionUrl

public void setRedirectionUrl(URI redirectionUrl)
Sets the redirection url.

Parameters:
redirectionUrl - the new redirection url


Copyright © 2012–2015 Microsoft. All rights reserved.