Class ResponseModifierFilter
java.lang.Object
com.castlabs.sdk.downloader.network.ResponseModifierFilter
Filter used to restrict when a
ResponseModifier is executed.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forResponseModifierFilterinstances. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder instance.static ResponseModifierFiltermatchAll()Creates a filter that matches every response.booleanChecks whether the given response matches this filter.
-
Method Details
-
matches
Checks whether the given response matches this filter.- Parameters:
response- Response under evaluation- Returns:
truewhen the filter conditions are satisfied
-
matchAll
Creates a filter that matches every response.- Returns:
- Filter instance with no restrictions
-
builder
Creates a new builder instance.- Returns:
- Builder for a filter configuration
-