public abstract class FluentHelperBasic<FluentHelperT,EntityT,ResultT> extends Object
Constructor and Description |
---|
FluentHelperBasic() |
Modifier and Type | Method and Description |
---|---|
ResultT |
execute()
Executes the underlying query using the stored values, plus any query modifiers that were previously called.
|
abstract ResultT |
execute(ErpConfigContext configContext)
Executes the underlying query using the stored values, plus any query modifiers that were previously called.
|
protected abstract Class<? extends EntityT> |
getEntityClass() |
protected Map<String,String> |
getHeadersForRequestAndImplicitRequests()
A map containing the header to be used for all implicit requests that are part of this FluentHelper
implementation (metadata, csrf, ...).
|
protected Map<String,String> |
getHeadersForRequestOnly()
A map containing the header to be used only for the actual request of this FluentHelper implementation.
|
protected FluentHelperT |
getThis() |
protected String |
getVersionIdentifier(com.sap.cloud.sdk.odatav2.connectivity.internal.ODataHttpResponseWrapper response) |
FluentHelperCustomHttpHeader<FluentHelperT> |
withCustomHttpHeader(String key,
String value)
Gives the option to specify custom HTTP headers.
|
FluentHelperCustomHttpHeader<FluentHelperT> |
withCustomHttpHeaders(Map<String,String> map)
Gives the option to specify a map of custom HTTP headers.
|
FluentHelperT |
withHttpHeader(String key,
String value)
Deprecated.
Use
withCustomHttpHeader(key, value).onRequestAndImplicitRequests() instead. |
protected FluentHelperT getThis()
public abstract ResultT execute(ErpConfigContext configContext) throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
configContext
- Supply the ERP system context for executing the underlying OData query.com.sap.cloud.sdk.odatav2.connectivity.ODataException
ErpConfigContext.ErpConfigContext()
public ResultT execute() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
com.sap.cloud.sdk.odatav2.connectivity.ODataException
ErpConfigContext.ErpConfigContext()
@Deprecated public FluentHelperT withHttpHeader(String key, String value)
withCustomHttpHeader(key, value).onRequestAndImplicitRequests()
instead.key
- Name of desired HTTP header parameter.value
- Value of desired HTTP header parameter.public FluentHelperCustomHttpHeader<FluentHelperT> withCustomHttpHeader(String key, String value)
key
- Name of the (first) desired HTTP header parameter.value
- Value of the (first) desired HTTP header parameter.public FluentHelperCustomHttpHeader<FluentHelperT> withCustomHttpHeaders(Map<String,String> map)
map
- A map of HTTP header key/value pairs.@Nullable protected String getVersionIdentifier(com.sap.cloud.sdk.odatav2.connectivity.internal.ODataHttpResponseWrapper response)
protected Map<String,String> getHeadersForRequestAndImplicitRequests()
Copyright © 2018 SAP SE. All rights reserved.