microsoft.exchange.webservices.data.GetUserConfigurationResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of exchange-ws-api Show documentation
Show all versions of exchange-ws-api Show documentation
The source came from http://archive.msdn.microsoft.com/ewsjavaapi
Support for Maven has been added.
The newest version!
/**************************************************************************
* copyright file="GetUserConfigurationResponse.java" company="Microsoft"
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* Defines the GetUserConfigurationResponse.java.
**************************************************************************/
package microsoft.exchange.webservices.data;
import javax.xml.stream.XMLStreamException;
/**
* Represents a response to a GetUserConfiguration request.
*/
public final class GetUserConfigurationResponse extends ServiceResponse {
/** The user configuration. */
private UserConfiguration userConfiguration;
/**
* Initializes a new instance of the class.
*
* @param userConfiguration
* the user configuration
*/
protected GetUserConfigurationResponse(
UserConfiguration userConfiguration) {
super();
EwsUtilities.EwsAssert(userConfiguration != null,
"GetUserConfigurationResponse.ctor",
"userConfiguration is null");
this.userConfiguration = userConfiguration;
}
/**
* Reads response elements from XML.
*
* @param reader
* the reader
* @throws ServiceXmlDeserializationException
* the service xml deserialization exception
* @throws XMLStreamException
* the xML stream exception
* @throws InstantiationException
* the instantiation exception
* @throws IllegalAccessException
* the illegal access exception
* @throws ServiceLocalException
* the service local exception
* @throws Exception
* the exception
*/
@Override
protected void readElementsFromXml(EwsServiceXmlReader reader)
throws ServiceXmlDeserializationException, XMLStreamException,
InstantiationException, IllegalAccessException,
ServiceLocalException, Exception {
super.readElementsFromXml(reader);
this.userConfiguration.loadFromXml(reader);
}
/**
* Gets the user configuration that was created.
*
* @return the user configuration
*/
public UserConfiguration getUserConfiguration() {
return this.userConfiguration;
}
}