public final class ConfluenceHtmlEntityEncodingPolicy extends Object implements com.atlassian.velocity.htmlsafe.ReferenceInsertionPolicy
| Constructor and Description | 
|---|
| ConfluenceHtmlEntityEncodingPolicy(TemplateHtmlEntityEncodingPolicy templateEncodingPolicy) | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.velocity.app.event.ReferenceInsertionEventHandler | getReferenceInsertionEventHandler(org.apache.velocity.context.Context context) | 
| boolean | shouldAutoEncode(org.apache.velocity.context.Context context) | 
| boolean | shouldAutoEncode(org.apache.velocity.context.Context context,
                @Nullable org.apache.velocity.Template template)Decides whether autoencoding should be enabled for a given context and optional template. | 
public ConfluenceHtmlEntityEncodingPolicy(TemplateHtmlEntityEncodingPolicy templateEncodingPolicy)
public boolean shouldAutoEncode(org.apache.velocity.context.Context context,
                                @Nullable org.apache.velocity.Template template)
ConfluenceVelocityTemplate without autoencodeDisabledConfluenceVelocityTemplate
         and the context _is_ or _wraps an OutputMimeTypeAwareContext with a mimetype of htmlcontext - a context which will be handled specially if it is an OutputMimeTypeAwareContext or is an
                InternalContextAdapter containing an OutputMimeTypeAwareContext.template - a nullable template which will be handled specially if it's a ConfluenceVelocityTemplatepublic boolean shouldAutoEncode(org.apache.velocity.context.Context context)
public org.apache.velocity.app.event.ReferenceInsertionEventHandler getReferenceInsertionEventHandler(org.apache.velocity.context.Context context)
getReferenceInsertionEventHandler in interface com.atlassian.velocity.htmlsafe.ReferenceInsertionPolicyCopyright © 2003–2022 Atlassian. All rights reserved.