public class ContentLengthFilter extends AbstractOCEventFilter
Modifier and Type | Field and Description |
---|---|
int |
contentSizeThreshold |
boolean |
inclusive |
Constructor and Description |
---|
ContentLengthFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(ContentResult cResult,
java.util.HashMap<java.lang.String,java.lang.Object> additionalParams,
java.lang.String ticket)
Method to evaluate a filter, must return a boolean.
|
int |
getContentSizeThreshold() |
boolean |
getInvert()
Whether or not we are looking for the opposite of the result returned from
OCEventFilter.evaluate(ContentResult, HashMap, String) |
boolean |
isInclusive() |
void |
setContentSizeThreshold(int contentSizeThreshold) |
void |
setInclusive(boolean inclusive) |
void |
setInvert(boolean invert) |
evaluate
public int contentSizeThreshold
public boolean inclusive
public boolean getInvert()
OCEventFilter
OCEventFilter.evaluate(ContentResult, HashMap, String)
public void setInvert(boolean invert)
public int getContentSizeThreshold()
public void setContentSizeThreshold(int contentSizeThreshold)
public boolean isInclusive()
public void setInclusive(boolean inclusive)
public boolean evaluate(ContentResult cResult, java.util.HashMap<java.lang.String,java.lang.Object> additionalParams, java.lang.String ticket)
OCEventFilter
cResult
- A nice wrapper object to contain document propertiesadditionalParams
- Additional properties (not on the object) that the filter can use to evaluate against