Class AbstractSidecarAccess
java.lang.Object
com.sap.cds.services.utils.lib.mtx.impl.AbstractSidecarAccess
- Direct Known Subclasses:
ModelProviderAccess
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected final ServiceEndpointprotected final ServiceEndpointprotected final ServiceEndpointprotected RequestEnhancer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSidecarAccess(RequestEnhancer requestEnhancer, ResilienceConfig resilienceConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ServiceCallcreateCsnCall(ModelId id, String eTag) protected abstract ServiceCallcreateEdmxCall(ModelId id, String eTag) protected abstract ServiceCallcreateI18nCall(ModelId id, String eTag) protected abstract SidecarResponsecsnSidecarResponse(ServiceResponse<String> response, String eTag) protected abstract SidecarResponseedmxSidecarResponse(ServiceResponse<String> response, String eTag) Returns csn model as string, as returned by sidecarprotected abstract Stringprotected abstract StringReturns edmx model as string, as returned by sidecarprotected abstract StringgetHeaderFields(String eTag) Returns i18n resources as string, as returned by sidecarprotected abstract Stringprotected abstract SidecarResponsei18nSidecarResponse(ServiceResponse<String> response, String eTag)
-
Field Details
-
APPLICATION_JSON
- See Also:
-
csnEndpoint
-
edmxEndpoint
-
i18nEndpoint
-
requestEnhancer
-
-
Constructor Details
-
AbstractSidecarAccess
- Parameters:
requestEnhancer- Adds information to http request, for example for authentication and authorityresilienceConfig- Parameters like number of retries, wait between retries, ..
-
-
Method Details
-
getDestinationName
-
getHeaderFields
-
getCsn
Returns csn model as string, as returned by sidecar- Parameters:
id- the model identifiereTag- entity tag- Returns:
- the
SidecarResponse - Throws:
com.sap.cds.CdsCommunicationException
-
getCsnPath
-
createCsnCall
- Throws:
InternalException
-
csnSidecarResponse
protected abstract SidecarResponse csnSidecarResponse(ServiceResponse<String> response, String eTag) -
getEdmx
public SidecarResponse getEdmx(ModelId id, String eTag) throws com.sap.cds.CdsCommunicationException Returns edmx model as string, as returned by sidecar- Parameters:
id- the model identifiereTag- entity tag- Returns:
- the
SidecarResponse - Throws:
com.sap.cds.CdsCommunicationException
-
edmxSidecarResponse
protected abstract SidecarResponse edmxSidecarResponse(ServiceResponse<String> response, String eTag) -
getEdmxPath
-
createEdmxCall
- Throws:
InternalException
-
getI18n
public SidecarResponse getI18n(ModelId id, String eTag) throws com.sap.cds.CdsCommunicationException Returns i18n resources as string, as returned by sidecar- Parameters:
id- the model identifiereTag- entity tag- Returns:
- the
SidecarResponse - Throws:
com.sap.cds.CdsCommunicationException
-
i18nSidecarResponse
protected abstract SidecarResponse i18nSidecarResponse(ServiceResponse<String> response, String eTag) -
getI18nPath
-
createI18nCall
- Throws:
InternalException
-