com.atlassian.confluence.util.velocity
Class ConfluenceHtmlEntityEncodingPolicy

java.lang.Object
  extended by 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.


Constructor Summary
ConfluenceHtmlEntityEncodingPolicy(TemplateHtmlEntityEncodingPolicy templateEncodingPolicy)
           
 
Method Summary
 org.apache.velocity.app.event.ReferenceInsertionEventHandler getReferenceInsertionEventHandler(org.apache.velocity.context.Context context)
          Get a ReferenceInsertionPolicy appropriate for the context being rendered.
 boolean shouldAutoEncode(org.apache.velocity.context.Context context)
           
 boolean shouldAutoEncode(org.apache.velocity.context.Context context, org.apache.velocity.Template template)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceHtmlEntityEncodingPolicy

public ConfluenceHtmlEntityEncodingPolicy(TemplateHtmlEntityEncodingPolicy templateEncodingPolicy)
Method Detail

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


Copyright © 2003-2013 Atlassian. All Rights Reserved.