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 java.lang.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()
           
 
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()
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-2010 Atlassian. All Rights Reserved.