public abstract class FluentHelperFunction<FluentHelperT,ObjectT extends VdmObject<?>,ResultT> extends FluentHelperBasic<FluentHelperT,ObjectT,ResultT>
Constructor and Description |
---|
FluentHelperFunction() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.http.client.methods.HttpUriRequest |
createRequest(URI uri) |
protected List<ObjectT> |
executeMultiple(ErpConfigContext configContext) |
protected ObjectT |
executeSingle(ErpConfigContext configContext) |
protected abstract String |
getFunctionName() |
protected abstract Map<String,Object> |
getParameters() |
protected abstract String |
getPath() |
FluentHelperT |
withHttpHeader(String key,
String value)
Adds a HTTP header parameter (key and value) to all underlying OData requests.
|
execute, execute, getEntityClass, getThis, getVersionIdentifier
protected abstract String getPath()
protected abstract String getFunctionName()
protected abstract org.apache.http.client.methods.HttpUriRequest createRequest(URI uri)
protected ObjectT executeSingle(ErpConfigContext configContext) throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
com.sap.cloud.sdk.odatav2.connectivity.ODataException
protected List<ObjectT> executeMultiple(ErpConfigContext configContext) throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
com.sap.cloud.sdk.odatav2.connectivity.ODataException
public FluentHelperT withHttpHeader(String key, String value)
FluentHelperBasic
withHttpHeader
in class FluentHelperBasic<FluentHelperT,ObjectT extends VdmObject<?>,ResultT>
key
- Name of desired HTTP header parameter.value
- Value of desired HTTP header parameter.Copyright © 2018 SAP SE. All rights reserved.