BaseRequestBuilder<T> Class

  • java.lang.Object
    • com.microsoft.graph.http.BaseRequestBuilder<T>

Type Parameters

T

Implements

public abstract class BaseRequestBuilder<T>
implements IRequestBuilder

A request builder

Constructor Summary

Constructor Description
BaseRequestBuilder(String requestUrl, IBaseClient<?> client, List<? extends Option> options)

Creates the request builder

Method Summary

Modifier and Type Method and Description
IBaseClient<?> getClient()

Gets the client

java.util.List<> getOptions(Option[] requestOptions)

Get the full list of options for this request

java.lang.String getRequestUrl()

Gets the request URL

java.lang.String getRequestUrlWithAdditionalParameter(String parameter)

Gets the request URL with an odata parameter added to it

java.lang.String getRequestUrlWithAdditionalSegment(String urlSegment)

Gets the request URL with an extra segment added to it

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

BaseRequestBuilder

public BaseRequestBuilder(String requestUrl, IBaseClient client, List options)

Creates the request builder

Parameters:

requestUrl - the URL to make the request against
client - the client which can issue the request
options - the options for this request

Method Details

getClient

public IBaseClient getClient()

Gets the client

Returns:

the client

getOptions

public List getOptions(Option[] requestOptions)

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

getRequestUrl

public String getRequestUrl()

Gets the request URL

Returns:

the request URL

getRequestUrlWithAdditionalParameter

public String getRequestUrlWithAdditionalParameter(String parameter)

Gets the request URL with an odata parameter added to it

Parameters:

parameter - the parameter to add

Returns:

the base URL for this request

getRequestUrlWithAdditionalSegment

public String getRequestUrlWithAdditionalSegment(String urlSegment)

Gets the request URL with an extra segment added to it

Parameters:

urlSegment - the section to add

Returns:

the base URL for this request

Applies to