@ComponentProfile(summary="Discard metadata where the length of the value exceeds the configured length", since="3.8.4") public class DiscardValuesTooLongFilter extends MetadataFilterImpl
In the adapter configuration file this class is aliased as discard-values-too-long-metadata-filter which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
DiscardValuesTooLongFilter() |
DiscardValuesTooLongFilter(java.lang.Integer i) |
Modifier and Type | Method and Description |
---|---|
MetadataCollection |
filter(MetadataCollection original)
Return all the metadata that matches the filter.
|
java.lang.Integer |
getMaxLengthChars() |
void |
setMaxLengthChars(java.lang.Integer bytes)
Set the max length for a metadata value before it gets discarded.
|
filter, filter
public DiscardValuesTooLongFilter()
public DiscardValuesTooLongFilter(java.lang.Integer i)
public MetadataCollection filter(MetadataCollection original)
MetadataFilter
original
- the original set of metadata.MetadataCollection
instance that has been filtered.public java.lang.Integer getMaxLengthChars()
public void setMaxLengthChars(java.lang.Integer bytes)
bytes
- the length; default is 256 if not specified.