Package com.microsoft.graph.core
Class CustomRequestBuilder<T>
java.lang.Object
com.microsoft.graph.http.BaseRequestBuilder<T>
com.microsoft.graph.core.CustomRequestBuilder<T>
- All Implemented Interfaces:
IRequestBuilder
The class for the CustomRequestBuilder
If the provided URL is malformed, the ClientException will contain a MalformedURLException
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomRequestBuilder(String requestUrl, IBaseClient<?> client, List<? extends Option> requestOptions, Class<T> responseType)Instanciates a new custom request builder -
Method Summary
Modifier and TypeMethodDescriptionbuildRequest(Option... requestOptions)Builds the request to be executedbuildRequest(List<? extends Option> requestOptions)Builds the request to be executedMethods inherited from class com.microsoft.graph.http.BaseRequestBuilder
getClient, getOptions, getRequestUrl, getRequestUrlWithAdditionalParameter, getRequestUrlWithAdditionalSegment
-
Field Details
-
responseType
Type to use for response deserialization
-
-
Constructor Details
-
CustomRequestBuilder
public CustomRequestBuilder(@Nonnull String requestUrl, @Nonnull IBaseClient<?> client, @Nullable List<? extends Option> requestOptions, @Nonnull Class<T> responseType)Instanciates a new custom request builder- Parameters:
requestUrl- the URL to send the request toclient- the client to use for the requestrequestOptions- options to apply to the requestresponseType- type to use for response deserialization
-
-
Method Details
-
buildRequest
Builds the request to be executed- Parameters:
requestOptions- the options to apply to the request- Returns:
- the request to be executed
-
buildRequest
Builds the request to be executed- Parameters:
requestOptions- the options to apply to the request- Returns:
- the request to be executed
-