Class ContextValueEncoderImpl
- java.lang.Object
 - 
- org.apache.tapestry5.internal.services.ContextValueEncoderImpl
 
 
- 
- All Implemented Interfaces:
 ContextValueEncoder
public class ContextValueEncoderImpl extends Object implements ContextValueEncoder
 
- 
- 
Constructor Summary
Constructors Constructor Description ContextValueEncoderImpl(ValueEncoderSource valueEncoderSource) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoClient(Object value)Converts a context value into a client-side string (that will ultimately be encoded into a URL).<T> TtoValue(Class<T> requiredType, String clientValue)Converts a client value back into a server-side object. 
 - 
 
- 
- 
Constructor Detail
- 
ContextValueEncoderImpl
public ContextValueEncoderImpl(ValueEncoderSource valueEncoderSource)
 
 - 
 
- 
Method Detail
- 
toClient
public String toClient(Object value)
Description copied from interface:ContextValueEncoderConverts a context value into a client-side string (that will ultimately be encoded into a URL).- Specified by:
 toClientin interfaceContextValueEncoder- Parameters:
 value- to convert (may not be null)- Returns:
 - string representation of the value
 - See Also:
 ValueEncoder.toClient(Object)
 
- 
toValue
public <T> T toValue(Class<T> requiredType, String clientValue)
Description copied from interface:ContextValueEncoderConverts a client value back into a server-side object.- Specified by:
 toValuein interfaceContextValueEncoder- Parameters:
 requiredType- required type to convert the string toclientValue- value obtained from context passed from client- Returns:
 - the client value converted or coerced into a server value
 - See Also:
 ValueEncoder.toValue(String)
 
 - 
 
 -