Class CustomRequestBuilder<T>

java.lang.Object
com.microsoft.graph.http.BaseRequestBuilder<T>
com.microsoft.graph.core.CustomRequestBuilder<T>
All Implemented Interfaces:
IRequestBuilder

public class CustomRequestBuilder<T> extends BaseRequestBuilder<T>
The class for the CustomRequestBuilder If the provided URL is malformed, the ClientException will contain a MalformedURLException
  • Field Details

    • responseType

      public final Class<T> 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 to
      client - the client to use for the request
      requestOptions - options to apply to the request
      responseType - type to use for response deserialization
  • Method Details

    • buildRequest

      @Nonnull public CustomRequest<T> buildRequest(@Nullable Option... requestOptions)
      Builds the request to be executed
      Parameters:
      requestOptions - the options to apply to the request
      Returns:
      the request to be executed
    • buildRequest

      @Nonnull public CustomRequest<T> buildRequest(@Nullable List<? extends Option> requestOptions)
      Builds the request to be executed
      Parameters:
      requestOptions - the options to apply to the request
      Returns:
      the request to be executed