Class ThingCommandSizeValidator


  • public final class ThingCommandSizeValidator
    extends org.eclipse.ditto.base.model.signals.commands.AbstractCommandSizeValidator<ThingTooLargeException>
    Command size validator for thing commands.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DITTO_LIMITS_THINGS_MAX_SIZE_BYTES
      System property name of the property defining the max Thing size in bytes.
      • Fields inherited from class org.eclipse.ditto.base.model.signals.commands.AbstractCommandSizeValidator

        DEFAULT_LIMIT
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ThingCommandSizeValidator getInstance()
      The singleton instance for this command size validator.
      protected ThingTooLargeException newInvalidSizeException​(long maxSize, long actualSize, org.eclipse.ditto.base.model.headers.DittoHeaders headers)  
      • Methods inherited from class org.eclipse.ditto.base.model.signals.commands.AbstractCommandSizeValidator

        ensureValidSize, ensureValidSize, getMaxSize
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DITTO_LIMITS_THINGS_MAX_SIZE_BYTES

        public static final java.lang.String DITTO_LIMITS_THINGS_MAX_SIZE_BYTES
        System property name of the property defining the max Thing size in bytes.
        See Also:
        Constant Field Values
    • Method Detail

      • newInvalidSizeException

        protected ThingTooLargeException newInvalidSizeException​(long maxSize,
                                                                 long actualSize,
                                                                 org.eclipse.ditto.base.model.headers.DittoHeaders headers)
        Specified by:
        newInvalidSizeException in class org.eclipse.ditto.base.model.signals.commands.AbstractCommandSizeValidator<ThingTooLargeException>
      • getInstance

        public static ThingCommandSizeValidator getInstance()
        The singleton instance for this command size validator. Will be initialized at first call.
        Returns:
        Singleton instance