Class GetUserAvailabilityRequest
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
-
- microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<GetUserAvailabilityResults>
-
- microsoft.exchange.webservices.data.core.request.GetUserAvailabilityRequest
-
public final class GetUserAvailabilityRequest extends SimpleServiceRequestBase<GetUserAvailabilityResults>
Represents a GetUserAvailability request.
-
-
Constructor Summary
Constructors Constructor Description GetUserAvailabilityRequest(ExchangeService service)Initializes a new instance of the "GetUserAvailabilityRequest" class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetUserAvailabilityResultsexecute()Executes this request.Iterable<AttendeeInfo>getAttendees()Gets the attendees.protected ExchangeVersiongetMinimumRequiredServerVersion()Gets the request version.AvailabilityOptionsgetOptions()Gets an object that allows you to specify options controlling the information returned by the GetUserAvailability request.AvailabilityDatagetRequestedData()Gets a value indicating what data is requested (free/busy and/or suggestions).protected StringgetResponseXmlElementName()Gets the name of the response XML element.TimeWindowgetTimeWindow()Gets the time window in which to retrieve user availability information.StringgetXmlElementName()Gets the name of the XML element.booleanisFreeBusyViewRequested()Gets a value indicating whether free/busy data is requested.booleanisSuggestionsViewRequested()Gets a value indicating whether suggestions are requested.protected GetUserAvailabilityResultsparseResponse(EwsServiceXmlReader reader)Parses the response.voidsetAttendees(Iterable<AttendeeInfo> attendees)Sets the attendees.voidsetOptions(AvailabilityOptions options)Sets the options.voidsetRequestedData(AvailabilityData requestedData)Sets the requested data.voidsetTimeWindow(TimeWindow timeWindow)Sets the time window.protected voidvalidate()Validate request.protected voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes XML elements.-
Methods inherited from class microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase
beginExecute, endInternalExecute, internalExecute
-
Methods inherited from class microsoft.exchange.webservices.data.core.request.ServiceRequestBase
buildEwsHttpPoolingWebRequest, buildEwsHttpWebRequest, getEwsHttpWebResponse, getResponseStream, getService, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeToXml
-
-
-
-
Constructor Detail
-
GetUserAvailabilityRequest
public GetUserAvailabilityRequest(ExchangeService service) throws Exception
Initializes a new instance of the "GetUserAvailabilityRequest" class.- Parameters:
service- the service- Throws:
Exception
-
-
Method Detail
-
getXmlElementName
public String getXmlElementName()
Gets the name of the XML element.- Specified by:
getXmlElementNamein classServiceRequestBase<GetUserAvailabilityResults>- Returns:
- XML element name.
-
isFreeBusyViewRequested
public boolean isFreeBusyViewRequested()
Gets a value indicating whether free/busy data is requested.- Returns:
- true, if is free busy view requested
-
isSuggestionsViewRequested
public boolean isSuggestionsViewRequested()
Gets a value indicating whether suggestions are requested.- Returns:
- true, if is suggestions view requested
-
validate
protected void validate() throws Exception
Validate request.- Overrides:
validatein classServiceRequestBase<GetUserAvailabilityResults>- Throws:
Exception- the exception
-
writeElementsToXml
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Writes XML elements.- Specified by:
writeElementsToXmlin classServiceRequestBase<GetUserAvailabilityResults>- Parameters:
writer- the writer- Throws:
Exception- the exception
-
getResponseXmlElementName
protected String getResponseXmlElementName()
Gets the name of the response XML element.- Specified by:
getResponseXmlElementNamein classServiceRequestBase<GetUserAvailabilityResults>- Returns:
- XML element name
-
parseResponse
protected GetUserAvailabilityResults parseResponse(EwsServiceXmlReader reader) throws Exception
Parses the response.- Specified by:
parseResponsein classServiceRequestBase<GetUserAvailabilityResults>- Parameters:
reader- The reader.- Returns:
- the Response Object.
- Throws:
Exception- the exception
-
getMinimumRequiredServerVersion
protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the request version.- Specified by:
getMinimumRequiredServerVersionin classServiceRequestBase<GetUserAvailabilityResults>- Returns:
- Earliest Exchange version in which this request is supported.
-
execute
public GetUserAvailabilityResults execute() throws Exception
Executes this request.- Returns:
- Service response.
- Throws:
Exception- the exception
-
getAttendees
public Iterable<AttendeeInfo> getAttendees()
Gets the attendees.- Returns:
- the attendees
-
setAttendees
public void setAttendees(Iterable<AttendeeInfo> attendees)
Sets the attendees.- Parameters:
attendees- the new attendees
-
getTimeWindow
public TimeWindow getTimeWindow()
Gets the time window in which to retrieve user availability information.- Returns:
- the time window
-
setTimeWindow
public void setTimeWindow(TimeWindow timeWindow)
Sets the time window.- Parameters:
timeWindow- the new time window
-
getRequestedData
public AvailabilityData getRequestedData()
Gets a value indicating what data is requested (free/busy and/or suggestions).- Returns:
- the requested data
-
setRequestedData
public void setRequestedData(AvailabilityData requestedData)
Sets the requested data.- Parameters:
requestedData- the new requested data
-
getOptions
public AvailabilityOptions getOptions()
Gets an object that allows you to specify options controlling the information returned by the GetUserAvailability request.- Returns:
- the options
-
setOptions
public void setOptions(AvailabilityOptions options)
Sets the options.- Parameters:
options- the new options
-
-