public class ContextValueEncoderImpl extends Object implements ContextValueEncoder
Constructor and Description |
---|
ContextValueEncoderImpl(ValueEncoderSource valueEncoderSource) |
Modifier and Type | Method and Description |
---|---|
String |
toClient(Object value)
Converts a context value into a client-side string (that will ultimately be encoded into a URL).
|
<T> T |
toValue(Class<T> requiredType,
String clientValue)
Converts a client value back into a server-side object.
|
public ContextValueEncoderImpl(ValueEncoderSource valueEncoderSource)
public String toClient(Object value)
ContextValueEncoder
toClient
in interface ContextValueEncoder
value
- to convert (may not be null)ValueEncoder.toClient(Object)
public <T> T toValue(Class<T> requiredType, String clientValue)
ContextValueEncoder
toValue
in interface ContextValueEncoder
requiredType
- required type to convert the string toclientValue
- value obtained from context passed from clientValueEncoder.toValue(String)
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.