Class ODataProtocol.ODataProtocolV4
java.lang.Object
com.sap.cloud.sdk.datamodel.odata.client.ODataProtocol.ODataProtocolV4
- All Implemented Interfaces:
ODataLiteralSerializer
,ODataProtocol
,ODataResponseDescriptor
- Enclosing interface:
- ODataProtocol
OData protocol v4.
-
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
-
Method Summary
Modifier and TypeMethodDescriptionReturns a function to convert a givenOffsetDateTime
into aString
that conforms with the protocol specification.Returns a function to convert a givenLocalDateTime
into aString
that 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, wait
Methods inherited from interface com.sap.cloud.sdk.datamodel.odata.client.ODataProtocol
isEqualTo
-
Constructor Details
-
ODataProtocolV4
public ODataProtocolV4()
-
-
Method Details
-
getQueryOptionInlineCount
Description copied from interface:ODataProtocol
Build the (inline) count query option for this protocol version.- Specified by:
getQueryOptionInlineCount
in 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:ODataProtocol
The version number of this protocol.- Specified by:
getProtocolVersion
in interfaceODataProtocol
- Returns:
- A string representing the OData version, e.g. "4.0"
-
getPathToResultSet
Description copied from interface:ODataResponseDescriptor
The JSON path(s) to a set of result elements. The last element of this array refers to the result array.- Specified by:
getPathToResultSet
in interfaceODataResponseDescriptor
- Returns:
- The path(s) to result set.
-
getPathToResultSingle
Description copied from interface:ODataResponseDescriptor
The JSON path(s) to a result object. The last element of this array refers to the result object.- Specified by:
getPathToResultSingle
in interfaceODataResponseDescriptor
- Returns:
- The path(s) to single result.
-
getPathToResultPrimitive
Description copied from interface:ODataResponseDescriptor
The JSON path(s) to a result primitive. The last element of this array refers to the result value.- Specified by:
getPathToResultPrimitive
in interfaceODataResponseDescriptor
- Returns:
- The path(s) to primitive result.
-
getPathToInlineCount
Description copied from interface:ODataResponseDescriptor
The JSON path(s) to an inline count. The last element of this array refers to the result value.- Specified by:
getPathToInlineCount
in interfaceODataResponseDescriptor
- Returns:
- The path(s) to inline count value.
-
getPathToNextLink
Description copied from interface:ODataResponseDescriptor
The 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:
getPathToNextLink
in interfaceODataResponseDescriptor
- Returns:
- The path(s) to inline count value.
-
getPathToDeltaLink
Description copied from interface:ODataResponseDescriptor
The JSON path(s) to the delta link of a versioned response. The last element of this array refers to the result value.- Specified by:
getPathToDeltaLink
in interfaceODataResponseDescriptor
- Returns:
- The path(s) to inline count value.
-
getNumberSerializer
Description copied from interface:ODataLiteralSerializer
Returns a function to convert a givenNumber
into aString
that conforms with the protocol specification.- Specified by:
getNumberSerializer
in interfaceODataLiteralSerializer
- Returns:
- A serializer for
Number
s.
-
getUUIDSerializer
Description copied from interface:ODataLiteralSerializer
Returns a function to convert a givenUUID
into aString
that conforms with the protocol specification.- Specified by:
getUUIDSerializer
in interfaceODataLiteralSerializer
- Returns:
- A serializer for
UUID
s.
-
getDateTimeOffsetSerializer
Description copied from interface:ODataLiteralSerializer
Returns a function to convert a givenOffsetDateTime
into aString
that conforms with the protocol specification.- Specified by:
getDateTimeOffsetSerializer
in interfaceODataLiteralSerializer
- Returns:
- A serializer for
OffsetDateTime
s.
-
getTimeOfDaySerializer
Description copied from interface:ODataLiteralSerializer
Returns a function to convert a givenLocalTime
into aString
that conforms with the protocol specification.- Specified by:
getTimeOfDaySerializer
in interfaceODataLiteralSerializer
- Returns:
- A serializer for
LocalTime
s.
-
getDateTimeSerializer
Description copied from interface:ODataLiteralSerializer
Returns a function to convert a givenLocalDateTime
into aString
that conforms with the protocol specification.- Specified by:
getDateTimeSerializer
in interfaceODataLiteralSerializer
- Returns:
- A serializer for
LocalDateTime
s.
-