public interface Sanitizer
PropertySanitizer
.
The Sanitizer implementation has the option to provide a different value for each level of
Visibility
.
For example, if the raw value is an URL, the PUBLIC
sanitized value may just include the URL path. The
PROTECTED
value may retain the query string, and the PRIVATE
value may retain the scheme and
domain name of the server.
If a Sanitizer returns null
, no value will be available for that requested visibility.
Implementations of this interface must provide a default no-args Constructor.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
apply(Visibility visibility,
java.lang.Object value)
Applies the custom sanitization to the given value for the given visibility.
|
java.lang.String apply(Visibility visibility, java.lang.Object value)
visibility
- The visibility of the property value.value
- The value to sanitize.Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.