Class ODataProtocol.ODataProtocolV2
java.lang.Object
com.sap.cloud.sdk.datamodel.odata.client.ODataProtocol.ODataProtocolV2
- All Implemented Interfaces:
ODataLiteralSerializer,ODataProtocol,ODataResponseDescriptor
- Enclosing interface:
- ODataProtocol
OData protocol v2.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sap.cloud.sdk.datamodel.odata.client.ODataProtocol
ODataProtocol.ODataProtocolV2, ODataProtocol.ODataProtocolV4 -
Field Summary
Fields inherited from interface com.sap.cloud.sdk.datamodel.odata.client.ODataProtocol
V2, V4 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a function to convert a givenOffsetDateTimeinto aStringthat conforms with the protocol specification.Returns a function to convert a givenLocalDateTimeinto aStringthat conforms with the protocol specification.The JSON path(s) to the delta link of a versioned response.The JSON path(s) to an inline count.The JSON path(s) to the next link of a multi page response.The JSON path(s) to a result primitive.The JSON path(s) to a set of result elements.The JSON path(s) to a result object.The version number of this protocol.getQueryOptionInlineCount(boolean optionEnabled) Build the (inline) count query option for this protocol version.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sap.cloud.sdk.datamodel.odata.client.ODataProtocol
isEqualTo
-
Constructor Details
-
ODataProtocolV2
public ODataProtocolV2()
-
-
Method Details
-
getQueryOptionInlineCount
Description copied from interface:ODataProtocolBuild the (inline) count query option for this protocol version.- Specified by:
getQueryOptionInlineCountin interfaceODataProtocol- Parameters:
optionEnabled- Determines the value of the query option.- Returns:
- An entry to add to the URL query.
-
toString
-
getProtocolVersion
Description copied from interface:ODataProtocolThe version number of this protocol.- Specified by:
getProtocolVersionin interfaceODataProtocol- Returns:
- A string representing the OData version, e.g. "4.0"
-
getPathToResultSet
Description copied from interface:ODataResponseDescriptorThe JSON path(s) to a set of result elements. The last element of this array refers to the result array.- Specified by:
getPathToResultSetin interfaceODataResponseDescriptor- Returns:
- The path(s) to result set.
-
getPathToResultSingle
Description copied from interface:ODataResponseDescriptorThe JSON path(s) to a result object. The last element of this array refers to the result object.- Specified by:
getPathToResultSinglein interfaceODataResponseDescriptor- Returns:
- The path(s) to single result.
-
getPathToResultPrimitive
Description copied from interface:ODataResponseDescriptorThe JSON path(s) to a result primitive. The last element of this array refers to the result value.- Specified by:
getPathToResultPrimitivein interfaceODataResponseDescriptor- Returns:
- The path(s) to primitive result.
-
getPathToInlineCount
Description copied from interface:ODataResponseDescriptorThe JSON path(s) to an inline count. The last element of this array refers to the result value.- Specified by:
getPathToInlineCountin interfaceODataResponseDescriptor- Returns:
- The path(s) to inline count value.
-
getPathToNextLink
Description copied from interface:ODataResponseDescriptorThe JSON path(s) to the next link of a multi page response. The last element of this array refers to the result value.- Specified by:
getPathToNextLinkin interfaceODataResponseDescriptor- Returns:
- The path(s) to inline count value.
-
getPathToDeltaLink
Description copied from interface:ODataResponseDescriptorThe JSON path(s) to the delta link of a versioned response. The last element of this array refers to the result value.- Specified by:
getPathToDeltaLinkin interfaceODataResponseDescriptor- Returns:
- The path(s) to inline count value.
-
getNumberSerializer
Description copied from interface:ODataLiteralSerializerReturns a function to convert a givenNumberinto aStringthat conforms with the protocol specification.- Specified by:
getNumberSerializerin interfaceODataLiteralSerializer- Returns:
- A serializer for
Numbers.
-
getUUIDSerializer
Description copied from interface:ODataLiteralSerializerReturns a function to convert a givenUUIDinto aStringthat conforms with the protocol specification.- Specified by:
getUUIDSerializerin interfaceODataLiteralSerializer- Returns:
- A serializer for
UUIDs.
-
getDateTimeOffsetSerializer
Description copied from interface:ODataLiteralSerializerReturns a function to convert a givenOffsetDateTimeinto aStringthat conforms with the protocol specification.- Specified by:
getDateTimeOffsetSerializerin interfaceODataLiteralSerializer- Returns:
- A serializer for
OffsetDateTimes.
-
getTimeOfDaySerializer
Description copied from interface:ODataLiteralSerializerReturns a function to convert a givenLocalTimeinto aStringthat conforms with the protocol specification.- Specified by:
getTimeOfDaySerializerin interfaceODataLiteralSerializer- Returns:
- A serializer for
LocalTimes.
-
getDateTimeSerializer
Description copied from interface:ODataLiteralSerializerReturns a function to convert a givenLocalDateTimeinto aStringthat conforms with the protocol specification.- Specified by:
getDateTimeSerializerin interfaceODataLiteralSerializer- Returns:
- A serializer for
LocalDateTimes.
-