Class NameValuePairFieldValueSerialiser
java.lang.Object
com.caplin.motif.fx.ret.common.extension.customfield.NameValuePairFieldValueSerialiser
- All Implemented Interfaces:
CustomFieldValuesSerialiser
public class NameValuePairFieldValueSerialiser
extends Object
implements CustomFieldValuesSerialiser
De/encodes CustomFieldValues from/into a string that is suitable for use as
an
application/x-www-form-urlencoded
list of parameters in an HTTP response.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialise
(String serialisedCustomFieldValues) Deserialises aString
to createCustomFieldValues
.serialise
(CustomFieldValues customFieldValues) Serialises theCustomFieldValues
to aString
.
-
Field Details
-
SEPARATOR
public static final char SEPARATOR- See Also:
-
-
Constructor Details
-
NameValuePairFieldValueSerialiser
public NameValuePairFieldValueSerialiser()
-
-
Method Details
-
serialise
Description copied from interface:CustomFieldValuesSerialiser
Serialises theCustomFieldValues
to aString
.- Specified by:
serialise
in interfaceCustomFieldValuesSerialiser
-
deserialise
Description copied from interface:CustomFieldValuesSerialiser
Deserialises aString
to createCustomFieldValues
.- Specified by:
deserialise
in interfaceCustomFieldValuesSerialiser
-