Class TemplatedExecutableSearchFilterBuilder.EscapingReferenceInsertionEventHandler
java.lang.Object
net.shibboleth.idp.attribute.resolver.dc.ldap.TemplatedExecutableSearchFilterBuilder.EscapingReferenceInsertionEventHandler
- All Implemented Interfaces:
org.apache.velocity.app.event.EventHandler,org.apache.velocity.app.event.ReferenceInsertionEventHandler
- Enclosing class:
- TemplatedExecutableSearchFilterBuilder
protected static class TemplatedExecutableSearchFilterBuilder.EscapingReferenceInsertionEventHandler
extends Object
implements org.apache.velocity.app.event.ReferenceInsertionEventHandler
Escapes LDAP attribute values added to the template context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ObjectReturnsFilterTemplate.encodeValue(byte[])if value is a string.referenceInsert(org.apache.velocity.context.Context context, String reference, Object value)
-
Constructor Details
-
EscapingReferenceInsertionEventHandler
protected EscapingReferenceInsertionEventHandler()
-
-
Method Details
-
referenceInsert
public Object referenceInsert(org.apache.velocity.context.Context context, String reference, Object value) - Specified by:
referenceInsertin interfaceorg.apache.velocity.app.event.ReferenceInsertionEventHandler
-
encode
ReturnsFilterTemplate.encodeValue(byte[])if value is a string.- Parameters:
value- to encode- Returns:
- encoded value if value is a string
-