Package ch.tocco.nice2.dms.impl.bind
Class BinaryConverter
java.lang.Object
org.directwebremoting.extend.AbstractConverter
ch.tocco.nice2.dms.impl.bind.BinaryConverter
- All Implemented Interfaces:
org.directwebremoting.extend.Converter
@Component
public class BinaryConverter
extends org.directwebremoting.extend.AbstractConverter
-
Constructor Summary
ConstructorDescriptionBinaryConverter
(org.slf4j.Logger log, MultiUploadService multiUploadService) -
Method Summary
Modifier and TypeMethodDescriptionconvertInbound
(Class<?> aClass, org.directwebremoting.extend.InboundVariable inboundVariable) It can handle two types of values: * entity uri (when we select another resource which should be copied to this place): entity://Resource/109 * tmp file url (for uploads): tmp://9824b7c2-c149-4cec-900b-e8043d1f5c62;image/png;image.png;68754org.directwebremoting.extend.OutboundVariable
convertOutbound
(Object o, org.directwebremoting.extend.OutboundContext outboundContext) void
setConverterManager
(org.directwebremoting.extend.ConverterManager converterManager)
-
Constructor Details
-
BinaryConverter
-
-
Method Details
-
setConverterManager
public void setConverterManager(org.directwebremoting.extend.ConverterManager converterManager) - Specified by:
setConverterManager
in interfaceorg.directwebremoting.extend.Converter
- Overrides:
setConverterManager
in classorg.directwebremoting.extend.AbstractConverter
-
convertInbound
public Binary convertInbound(Class<?> aClass, org.directwebremoting.extend.InboundVariable inboundVariable) throws org.directwebremoting.ConversionException It can handle two types of values: * entity uri (when we select another resource which should be copied to this place): entity://Resource/109 * tmp file url (for uploads): tmp://9824b7c2-c149-4cec-900b-e8043d1f5c62;image/png;image.png;68754- Throws:
org.directwebremoting.ConversionException
-
convertOutbound
public org.directwebremoting.extend.OutboundVariable convertOutbound(Object o, org.directwebremoting.extend.OutboundContext outboundContext) throws org.directwebremoting.ConversionException - Throws:
org.directwebremoting.ConversionException
-