ResultT
- The type of the result entity, if any.public interface RequestBuilder<ResultT> extends RequestBuilderExecutable<ResultT>
Modifier and Type | Method and Description |
---|---|
ODataRequestGeneric |
toRequest()
Assemble a generic, untyped request object that represents the request build up via this builder.
|
RequestBuilder<ResultT> |
withHeader(String key,
String value)
Gives the option to specify custom HTTP headers.
|
default RequestBuilder<ResultT> |
withHeaders(Map<String,String> map)
Gives the option to specify a map of custom HTTP headers.
|
execute, tryExecute
@Nonnull @Beta ODataRequestGeneric toRequest()
ODataRequestGeneric
.@Nonnull RequestBuilder<ResultT> withHeader(@Nonnull String key, @Nullable String value)
key
- Name of the (first) desired HTTP header parameter.value
- Value of the (first) desired HTTP header parameter.@Nonnull default RequestBuilder<ResultT> withHeaders(@Nonnull Map<String,String> map)
map
- A map of HTTP header key/value pairs.Copyright © 2021 SAP SE. All rights reserved.