Package com.microsoft.graph.http
Class BaseRequestBuilder<T>
java.lang.Object
com.microsoft.graph.http.BaseRequestBuilder<T>
- All Implemented Interfaces:
IRequestBuilder
- Direct Known Subclasses:
BaseActionRequestBuilder,BaseCollectionRequestBuilder,BaseFunctionRequestBuilder,BaseReferenceRequestBuilder,BaseWithReferenceRequestBuilder,BatchRequestBuilder,CustomRequestBuilder,PrimitiveRequestBuilder
A request builder
-
Constructor Summary
ConstructorsConstructorDescriptionBaseRequestBuilder(String requestUrl, IBaseClient<?> client, List<? extends Option> options)Creates the request builder -
Method Summary
Modifier and TypeMethodDescriptionIBaseClient<?>Gets the clientgetOptions(Option... requestOptions)Get the full list of options for this requestGets the request URLgetRequestUrlWithAdditionalParameter(String parameter)Gets the request URL with an odata parameter added to itgetRequestUrlWithAdditionalSegment(String urlSegment)Gets the request URL with an extra segment added to it
-
Constructor Details
-
BaseRequestBuilder
public BaseRequestBuilder(@Nonnull String requestUrl, @Nonnull IBaseClient<?> client, @Nullable List<? extends Option> options)Creates the request builder- Parameters:
requestUrl- the URL to make the request againstclient- the client which can issue the requestoptions- the options for this request
-
-
Method Details
-
getClient
Gets the client- Specified by:
getClientin interfaceIRequestBuilder- Returns:
- the client
-
getRequestUrl
Gets the request URL- Specified by:
getRequestUrlin interfaceIRequestBuilder- Returns:
- the request URL
-
getOptions
Get the full list of options for this request- Parameters:
requestOptions- the options for this request- Returns:
- the full list of options for this request
-
getRequestUrlWithAdditionalSegment
Gets the request URL with an extra segment added to it- Specified by:
getRequestUrlWithAdditionalSegmentin interfaceIRequestBuilder- Parameters:
urlSegment- the section to add- Returns:
- the base URL for this request
-
getRequestUrlWithAdditionalParameter
Gets the request URL with an odata parameter added to it- Parameters:
parameter- the parameter to add- Returns:
- the base URL for this request
-