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