com.atlassian.velocity.htmlsafe.event.referenceinsertion
Class DisableHtmlEscapingDirectiveHandler
java.lang.Object
com.atlassian.velocity.htmlsafe.event.referenceinsertion.DisableHtmlEscapingDirectiveHandler
- All Implemented Interfaces:
- org.apache.velocity.app.event.EventHandler, org.apache.velocity.app.event.ReferenceInsertionEventHandler, org.apache.velocity.util.ContextAware
public class DisableHtmlEscapingDirectiveHandler
- extends java.lang.Object
- implements org.apache.velocity.app.event.ReferenceInsertionEventHandler, org.apache.velocity.util.ContextAware
Disables html escaping of references according to the DisableHtmlEscaping directive.
If the directive is present on the template it will not escape the reference;
Otherwise, it will delegate escaping of the reference to an HtmlAnnotationEscaper handler.
| Nested classes/interfaces inherited from interface org.apache.velocity.app.event.ReferenceInsertionEventHandler |
org.apache.velocity.app.event.ReferenceInsertionEventHandler.referenceInsertExecutor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DisableHtmlEscapingDirectiveHandler
public DisableHtmlEscapingDirectiveHandler()
DisableHtmlEscapingDirectiveHandler
public DisableHtmlEscapingDirectiveHandler(org.apache.velocity.app.event.ReferenceInsertionEventHandler htmlEscapingHandler)
setContext
public void setContext(org.apache.velocity.context.Context context)
- Specified by:
setContext in interface org.apache.velocity.util.ContextAware
setDirectiveChecker
public void setDirectiveChecker(DirectiveChecker directiveChecker)
- Sets the DirectiveChecker that will be used.
- Parameters:
directiveChecker - a DirectiveChecker
referenceInsert
public java.lang.Object referenceInsert(java.lang.String reference,
java.lang.Object value)
- Specified by:
referenceInsert in interface org.apache.velocity.app.event.ReferenceInsertionEventHandler
Copyright © 2013 Atlassian. All Rights Reserved.