Class RESTEncodingHelper
java.lang.Object
com.orchestranetworks.dataservices.rest.RESTEncodingHelper
Deprecated.
since 6.1.0.
Helper for REST encoding.
- Since:
- 5.7.1 fix D
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Deprecated.Decodes a given encoded string.static PrimaryKey
decodePrimaryKey
(String anEncodedPrimaryKey) Deprecated.Decodes an encoded primary key string form into a primary key object.static String
Deprecated.Encodes a given string.static String
encodePrimaryKey
(PrimaryKey aPrimaryKey) Deprecated.Encodes a given primary key and transforms it into a string.
-
Constructor Details
-
RESTEncodingHelper
public RESTEncodingHelper()Deprecated.
-
-
Method Details
-
encode
Deprecated.Encodes a given string.The provided
String
is encoded into theapplication/x-www-form-urlencoded
format using theUTF-8
encoding, then the following characters are replaced:- '+' by '_20',
- '*' by '_2A',
- '-' by '_2D',
- '.' by '_2E',
- '_' by '_5F'
- '%' by '_'.
-
encodePrimaryKey
Deprecated.Encodes a given primary key and transforms it into a string.The encoded primary key representation should be used in the
URI
path.- Parameters:
aPrimaryKey
- a primary key to encode.- Returns:
- the encoded primary key
String
form ornull
. - See Also:
-
decodePrimaryKey
public static PrimaryKey decodePrimaryKey(String anEncodedPrimaryKey) throws UnsupportedEncodingException Deprecated.Decodes an encoded primary key string form into a primary key object.- Parameters:
anEncodedPrimaryKey
- an encoded primary key to decode.- Returns:
- the decoded primary key
Object
ornull
. - Throws:
UnsupportedEncodingException
- ifanEncodedPrimaryKey
cannot be decoded.- See Also:
-
decode
Deprecated.Decodes a given encoded string.The provided
String
is decoded from anapplication/x-www-form-urlencoded
format, usingUTF-8
encoding, after the substitution of the following characters:- '_' by '%',
- '_5F' by '_',
- '_2A' by '*',
- '_2D' by '-',
- '_2E' by '.'
- Parameters:
anEncoded
- the encodedString
.- Returns:
- the decoded
String
. - Throws:
UnsupportedEncodingException
- ifanEncoded
cannot be decoded.- See Also:
-