Class JSONEncodingInputStreamDirective
- java.lang.Object
-
- org.apache.velocity.runtime.directive.Directive
-
- de.hybris.platform.auditreport.service.impl.velocity.JSONEncodingInputStreamDirective
-
- All Implemented Interfaces:
java.lang.Cloneable,org.apache.velocity.runtime.directive.DirectiveConstants
public class JSONEncodingInputStreamDirective extends org.apache.velocity.runtime.directive.Directive
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAMPstatic java.lang.StringAMP_ENTITYstatic java.lang.StringDIRECTIVE_NAMEstatic java.lang.StringGTstatic java.lang.StringGT_ENTITYstatic java.lang.StringLTstatic java.lang.StringLT_ENTITY
-
Constructor Summary
Constructors Constructor Description JSONEncodingInputStreamDirective()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringencodeHTMLEntities(java.lang.String text)java.lang.StringgetName()intgetType()booleanrender(org.apache.velocity.context.InternalContextAdapter context, java.io.Writer writer, org.apache.velocity.runtime.parser.node.Node node)
-
-
-
Field Detail
-
DIRECTIVE_NAME
public static final java.lang.String DIRECTIVE_NAME
- See Also:
- Constant Field Values
-
AMP
public static final java.lang.String AMP
- See Also:
- Constant Field Values
-
AMP_ENTITY
public static final java.lang.String AMP_ENTITY
- See Also:
- Constant Field Values
-
LT
public static final java.lang.String LT
- See Also:
- Constant Field Values
-
LT_ENTITY
public static final java.lang.String LT_ENTITY
- See Also:
- Constant Field Values
-
GT
public static final java.lang.String GT
- See Also:
- Constant Field Values
-
GT_ENTITY
public static final java.lang.String GT_ENTITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein classorg.apache.velocity.runtime.directive.Directive
-
getType
public int getType()
- Specified by:
getTypein classorg.apache.velocity.runtime.directive.Directive
-
render
public boolean render(org.apache.velocity.context.InternalContextAdapter context, java.io.Writer writer, org.apache.velocity.runtime.parser.node.Node node) throws java.io.IOException, org.apache.velocity.exception.MethodInvocationException- Specified by:
renderin classorg.apache.velocity.runtime.directive.Directive- Throws:
java.io.IOExceptionorg.apache.velocity.exception.MethodInvocationException
-
encodeHTMLEntities
protected java.lang.String encodeHTMLEntities(java.lang.String text)
- Parameters:
text- text to encode entities- Returns:
- encoded text
-
-