Package com.microsoft.graph.http
Class BaseEntityCollectionRequest<T,T2 extends ICollectionResponse<T>,T3 extends BaseCollectionPage<T,? extends BaseRequestBuilder<T>>>
java.lang.Object
com.microsoft.graph.http.BaseCollectionRequest<T,T2,T3>
com.microsoft.graph.http.BaseEntityCollectionRequest<T,T2,T3>
- Type Parameters:
T- the type of the object in the collectionT2- the response collection typeT3- the collection page type
- All Implemented Interfaces:
IHttpRequest
- Direct Known Subclasses:
BaseCollectionWithReferencesRequest
public abstract class BaseEntityCollectionRequest<T,T2 extends ICollectionResponse<T>,T3 extends BaseCollectionPage<T,? extends BaseRequestBuilder<T>>>
extends BaseCollectionRequest<T,T2,T3>
A request against a collection
-
Field Summary
Fields inherited from class com.microsoft.graph.http.BaseCollectionRequest
responseCollectionClass -
Constructor Summary
ConstructorsConstructorDescriptionBaseEntityCollectionRequest(String requestUrl, IBaseClient<?> client, List<? extends Option> options, Class<T2> responseCollectionClass, Class<T3> collectionPageClass, Class<? extends BaseCollectionRequestBuilder<T,? extends BaseRequestBuilder<T>,T2,T3,? extends BaseCollectionRequest<T,T2,T3>>> collectionRequestBuilderClass)Create the collection request -
Method Summary
Methods inherited from class com.microsoft.graph.http.BaseCollectionRequest
addCountOption, addExpandOption, addFilterOption, addFunctionOption, addHeader, addOrderByOption, addQueryOption, addSelectOption, addSkipOption, addSkipTokenOption, addTopOption, buildFromResponse, getBaseRequest, getCollectionPageClass, getDelay, getHeaders, getHttpMethod, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, send, sendAsync, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.graph.http.IHttpRequest
getHttpRequest
-
Constructor Details
-
BaseEntityCollectionRequest
public BaseEntityCollectionRequest(@Nonnull String requestUrl, @Nonnull IBaseClient<?> client, @Nullable List<? extends Option> options, @Nonnull Class<T2> responseCollectionClass, @Nonnull Class<T3> collectionPageClass, @Nonnull Class<? extends BaseCollectionRequestBuilder<T,? extends BaseRequestBuilder<T>,T2,T3,? extends BaseCollectionRequest<T,T2,T3>>> collectionRequestBuilderClass)Create the collection request- Parameters:
requestUrl- the URL to make the request againstclient- the client which can issue the requestoptions- the options for this requestresponseCollectionClass- the class for the response collectioncollectionPageClass- the class for the collection pagecollectionRequestBuilderClass- the class for the collection request builder
-
-
Method Details
-
getAsync
Gets the collection of items- Returns:
- a future with the result
-
get
Gets the collection of items- Returns:
- the collection page
- Throws:
ClientException
-
post
Posts this request- Type Parameters:
BodyType- the type of the serialized body, some times Action use different body than collection item- Parameters:
serializedObject- the object to serialize as the body- Returns:
- the response object
- Throws:
ClientException- an exception occurs if there was an error while the request was sent
-