Class ThingCommandSizeValidator
- java.lang.Object
-
- org.eclipse.ditto.signals.commands.base.AbstractCommandSizeValidator<org.eclipse.ditto.model.things.ThingTooLargeException>
-
- org.eclipse.ditto.signals.commands.things.ThingCommandSizeValidator
-
public final class ThingCommandSizeValidator extends org.eclipse.ditto.signals.commands.base.AbstractCommandSizeValidator<org.eclipse.ditto.model.things.ThingTooLargeException>
Command size validator for thing commands.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DITTO_LIMITS_THINGS_MAX_SIZE_BYTES
System property name of the property defining the max Thing size in bytes.
-
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 org.eclipse.ditto.model.things.ThingTooLargeException
newInvalidSizeException(long maxSize, long actualSize, org.eclipse.ditto.model.base.headers.DittoHeaders headers)
-
-
-
Field Detail
-
DITTO_LIMITS_THINGS_MAX_SIZE_BYTES
public static final 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 org.eclipse.ditto.model.things.ThingTooLargeException newInvalidSizeException(long maxSize, long actualSize, org.eclipse.ditto.model.base.headers.DittoHeaders headers)
- Specified by:
newInvalidSizeException
in classorg.eclipse.ditto.signals.commands.base.AbstractCommandSizeValidator<org.eclipse.ditto.model.things.ThingTooLargeException>
-
getInstance
public static ThingCommandSizeValidator getInstance()
The singleton instance for this command size validator. Will be initialized at first call.- Returns:
- Singleton instance
-
-