com.atlassian.confluence.util.velocity
Class ConfluenceHtmlEntityEncodingPolicy
java.lang.Object
com.atlassian.confluence.util.velocity.ConfluenceHtmlEntityEncodingPolicy
- All Implemented Interfaces:
- ReferenceInsertionPolicy
public final class ConfluenceHtmlEntityEncodingPolicy
- extends Object
- implements ReferenceInsertionPolicy
This reference insertion policy implements the strategy used by Confluence to determine whether automatic HTML
entity encoding should be applied to any particular context or template used by the Velocity rendering system.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluenceHtmlEntityEncodingPolicy
public ConfluenceHtmlEntityEncodingPolicy(TemplateHtmlEntityEncodingPolicy templateEncodingPolicy)
shouldAutoEncode
public boolean shouldAutoEncode(org.apache.velocity.context.Context context,
org.apache.velocity.Template template)
shouldAutoEncode
public boolean shouldAutoEncode(org.apache.velocity.context.Context context)
getReferenceInsertionEventHandler
public org.apache.velocity.app.event.ReferenceInsertionEventHandler getReferenceInsertionEventHandler(org.apache.velocity.context.Context context)
- Description copied from interface:
ReferenceInsertionPolicy
- Get a
ReferenceInsertionPolicy
appropriate for the context being
rendered.
- Specified by:
getReferenceInsertionEventHandler
in interface ReferenceInsertionPolicy
- Parameters:
context
- Context being rendered.
- Returns:
- insertion event handler for the context