@Beta public interface ODataProtocol extends ODataResponseDescriptor, ODataLiteralSerializer
ODataProtocol
defines all necessary information that is needed in order to differentiate between
different OData protocol versions.Modifier and Type | Interface and Description |
---|---|
static class |
ODataProtocol.ODataProtocolV2
OData protocol v2
|
static class |
ODataProtocol.ODataProtocolV4
OData protocol v4
|
Modifier and Type | Field and Description |
---|---|
static ODataProtocol |
V2
Version 2.0 of the OData protocol.
|
static ODataProtocol |
V4
Version 4.0 of the OData protocol.
|
Modifier and Type | Method and Description |
---|---|
String |
getProtocolVersion()
The version number of this protocol.
|
Map.Entry<String,String> |
getQueryOptionInlineCount(boolean optionEnabled)
Build the (inline) count query option for this protocol version.
|
default boolean |
isEqualTo(ODataProtocol otherProtocol)
Compares this protocol with the given protocol based on their version identifiers.
|
getPathToInlineCount, getPathToNextLink, getPathToResultPrimitive, getPathToResultSet, getPathToResultSingle
getDateTimeOffsetSerializer, getDateTimeSerializer, getNumberSerializer, getTimeOfDaySerializer, getUUIDSerializer
static final ODataProtocol V2
static final ODataProtocol V4
@Nonnull String getProtocolVersion()
@Nonnull Map.Entry<String,String> getQueryOptionInlineCount(boolean optionEnabled)
optionEnabled
- Determines the value of the query option.default boolean isEqualTo(@Nonnull ODataProtocol otherProtocol)
otherProtocol
- The protocol to compare to.Copyright © 2021 SAP SE. All rights reserved.