public class StringValueEncoder extends Object implements ValueEncoder<String>
Constructor and Description |
---|
StringValueEncoder() |
Modifier and Type | Method and Description |
---|---|
String |
toClient(String value)
Converts a value into a client-side representation.
|
String |
toValue(String clientValue)
Converts a client-side representation, provided by
ValueEncoder.toClient(Object) , back into a server-side value. |
public StringValueEncoder()
public String toClient(String value)
ValueEncoder
ValueEncoder.toValue(String)
. In
some cases, what is returned is an identifier used to locate the true object, rather than a string representation
of the value itself.toClient
in interface ValueEncoder<String>
value
- to be encodedpublic String toValue(String clientValue)
ValueEncoder
ValueEncoder.toClient(Object)
, back into a server-side value.toValue
in interface ValueEncoder<String>
clientValue
- string representation of the value's identity5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.