public class ODataConnectivityUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CSRF_HEADER |
Constructor and Description |
---|
ODataConnectivityUtil() |
Modifier and Type | Method and Description |
---|---|
static org.apache.olingo.odata2.client.api.ep.Entity |
addPropertiesToEntity(Map<String,Object> properties,
org.apache.olingo.odata2.api.edm.EdmEntityType entityType) |
static void |
checkHttpStatus(org.apache.http.HttpResponse response,
ErrorResultHandler<?> errorHandler) |
static String |
convertKeyValuesToString(Map<String,Object> keys,
org.apache.olingo.odata2.api.edm.EdmEntityType entityType) |
static EdmWithCSRF |
readMetadataWithCSRF(String serviceUri,
org.apache.http.client.HttpClient httpClient) |
public static final String CSRF_HEADER
public static EdmWithCSRF readMetadataWithCSRF(String serviceUri, org.apache.http.client.HttpClient httpClient) throws org.apache.http.client.ClientProtocolException, IOException
org.apache.http.client.ClientProtocolException
IOException
public static String convertKeyValuesToString(Map<String,Object> keys, org.apache.olingo.odata2.api.edm.EdmEntityType entityType) throws ODataException, org.apache.olingo.odata2.api.edm.EdmException
ODataException
org.apache.olingo.odata2.api.edm.EdmException
public static org.apache.olingo.odata2.client.api.ep.Entity addPropertiesToEntity(Map<String,Object> properties, org.apache.olingo.odata2.api.edm.EdmEntityType entityType) throws org.apache.olingo.odata2.api.edm.EdmException
org.apache.olingo.odata2.api.edm.EdmException
public static void checkHttpStatus(org.apache.http.HttpResponse response, ErrorResultHandler<?> errorHandler) throws ODataException
ODataException
Copyright © 2017 SAP SE. All rights reserved.