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

    Constructors
    Constructor
    Description
    BinaryConverter(org.slf4j.Logger log, MultiUploadService multiUploadService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    convertInbound(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;68754
    org.directwebremoting.extend.OutboundVariable
    convertOutbound(Object o, org.directwebremoting.extend.OutboundContext outboundContext)
     
    void
    setConverterManager(org.directwebremoting.extend.ConverterManager converterManager)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BinaryConverter

      public BinaryConverter(org.slf4j.Logger log, MultiUploadService multiUploadService)
  • Method Details

    • setConverterManager

      public void setConverterManager(org.directwebremoting.extend.ConverterManager converterManager)
      Specified by:
      setConverterManager in interface org.directwebremoting.extend.Converter
      Overrides:
      setConverterManager in class org.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