Class AbstractODataParameters
java.lang.Object
com.sap.cloud.sdk.datamodel.odata.client.request.AbstractODataParameters
- Direct Known Subclasses:
ODataEntityKey
,ODataFunctionParameters
Abstract class to build parameter expressions for the URL path. Parameters can resemble an entity key or function
parameters.
-
Method Summary
Modifier and TypeMethodDescriptionTheODataProtocol
these parameters should conform to.Serializes all parameters into an encoded URL path segment.toEncodedString
(UriEncodingStrategy strategy) Serializes all parameters into an encoded URL path segment.toString()
Serializes all parameters into an unencoded URL path segment.
-
Method Details
-
toEncodedString
Serializes all parameters into an encoded URL path segment. The format is as follows:- An empty set of parameters will yield
()
- A single parameter entry will yield
(value)
- Multiple of parameters will yield
(key1=val,key2=val)
- Returns:
- Encoded URL string representation of the parameters.
- An empty set of parameters will yield
-
toEncodedString
Serializes all parameters into an encoded URL path segment. The format is as follows:- An empty set of parameters will yield
()
- A single parameter entry will yield
(value)
- Multiple of parameters will yield
(key1=val,key2=val)
- Parameters:
strategy
- The URI encoding strategy.- Returns:
- Encoded URL string representation of the parameters.
- An empty set of parameters will yield
-
toString
Serializes all parameters into an unencoded URL path segment. The format is as follows:- An empty set of parameters will yield
()
- A single parameter entry will yield
(value)
- Multiple of parameters will yield
(key1=val,key2=val)
- An empty set of parameters will yield
-
getProtocol
TheODataProtocol
these parameters should conform to.
-