public class HtmlAnnotationEscaper extends AnnotatedReferenceHandler
ReferenceInsertionEventHandler
that HTML encodes any value not annotated
as being HtmlSafe.
It also excludes some references from escaping based on name:
Constructor and Description |
---|
HtmlAnnotationEscaper() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
annotatedValueInsert(java.lang.String referenceName,
java.lang.Object value,
java.util.Collection<java.lang.annotation.Annotation> annotations)
Process a reference with a collection of annotations
|
referenceInsert
protected java.lang.Object annotatedValueInsert(java.lang.String referenceName, java.lang.Object value, java.util.Collection<java.lang.annotation.Annotation> annotations)
AnnotatedReferenceHandler
annotatedValueInsert
in class AnnotatedReferenceHandler
referenceName
- name of the reference being insertedvalue
- unboxed reference valueannotations
- any annotations associated with the referenceCopyright © 2003-2014 Atlassian. All Rights Reserved.