public class HtmlSafeMethodNameAnnotator extends Object implements MethodAnnotator
Method annotator that marks certain methods as being HtmlSafe based on the method name.
This policy will annotate any method whose name ends with "Html" or starts with "render" as having a HTML safe return value.
Constructor and Description |
---|
HtmlSafeMethodNameAnnotator() |
Modifier and Type | Method and Description |
---|---|
Collection<Annotation> |
getAnnotationsForMethod(Method method)
Return a collection of annotations for a method
|
public Collection<Annotation> getAnnotationsForMethod(Method method)
MethodAnnotator
getAnnotationsForMethod
in interface MethodAnnotator
method
- Method to annotateCopyright © 2003–2017 Atlassian. All rights reserved.