@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.
|
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()
default boolean isEqualTo(@Nonnull ODataProtocol otherProtocol)
otherProtocol
- The protocol to compare to.Copyright © 2021 SAP SE. All rights reserved.