| java.lang.Object org.directwebremoting.dwrp.DefaultConverterManager
DefaultConverterManager | public class DefaultConverterManager implements ConverterManager(Code) | | A class to manage the converter types and the instantiated class name matches.
author: Joe Walker [joe at getahead dot ltd dot uk] |
Method Summary | |
public void | addConverter(String match, String type, Map<String, String> params) | public void | addConverter(String match, Converter converter) | public void | addConverterType(String id, String className) | public Object | convertInbound(Class> paramType, InboundVariable data, InboundContext inctx, TypeHintContext incc) | public OutboundVariable | convertOutbound(Object data, OutboundContext converted) | public Converter | getConverterByMatchString(String match) | public Collection<String> | getConverterMatchStrings() | public Class> | getExtraTypeInfo(TypeHintContext thc) | protected Converter | getNamedConverter(Class> paramType, String javascriptClassName) | public boolean | isConvertable(Class> paramType) | public void | setConverters(Map<String, Converter> converters) | public void | setExtraTypeInfo(TypeHintContext thc, Class> type) |
converterTypes | protected Map<String, Class<?>> converterTypes(Code) | | The list of the available converters
|
getNamedConverter | protected Converter getNamedConverter(Class> paramType, String javascriptClassName) throws MarshallException(Code) | | When we are using typed Javascript names we sometimes want to get a
specially named converter
Parameters: paramType - The class that we are converting to Parameters: javascriptClassName - The type name as passed in from the client The Converter that matches this request (if any) throws: MarshallException - IF marshalling fails |
isConvertable | public boolean isConvertable(Class> paramType)(Code) | | |
|
|