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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringDeprecated.Decodes a given encoded string.static PrimaryKeydecodePrimaryKey(String anEncodedPrimaryKey) Deprecated.Decodes an encoded primary key string form into a primary key object.static StringDeprecated.Encodes a given string.static StringencodePrimaryKey(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
Stringis encoded into theapplication/x-www-form-urlencodedformat using theUTF-8encoding, 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
URIpath.- Parameters:
aPrimaryKey- a primary key to encode.- Returns:
- the encoded primary key
Stringform 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
Objectornull. - Throws:
UnsupportedEncodingException- ifanEncodedPrimaryKeycannot be decoded.- See Also:
-
decode
Deprecated.Decodes a given encoded string.The provided
Stringis decoded from anapplication/x-www-form-urlencodedformat, usingUTF-8encoding, 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- ifanEncodedcannot be decoded.- See Also:
-