Class AutodiscoverResponse
- java.lang.Object
-
- 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
Constructors Constructor Description AutodiscoverResponse()Initializes a new instance of the AutodiscoverResponse class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutodiscoverErrorCodegetErrorCode()Gets the error code that was returned by the service.StringgetErrorMessage()Gets the error message that was returned by the service.URIgetRedirectionUrl()Gets the redirection URL.voidloadFromXml(EwsXmlReader reader, String endElementName)Initializes a new instance of the AutodiscoverResponse class.voidsetErrorCode(AutodiscoverErrorCode errorCode)Sets the error code.voidsetErrorMessage(String errorMessage)Sets the error message.voidsetRedirectionUrl(URI redirectionUrl)Sets the redirection url.
-
-
-
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 readerendElementName- 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
-
-