|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.droplet.EscapeHTMLTagConverter
public class EscapeHTMLTagConverter
This converter converts an Object value into a String using the toString method, then escapes special characters like < into the escaped equivalent. It does no conversion when converting from String to Object.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Constructor Summary | |
---|---|
EscapeHTMLTagConverter()
|
Method Summary | |
---|---|
java.lang.String |
convertObjectToString(DynamoHttpServletRequest pReq,
java.lang.Object pValue,
java.util.Properties pAttributes)
Converts the supplied Object value to a String value. |
java.lang.Object |
convertStringToObject(DynamoHttpServletRequest pReq,
java.lang.String pValue,
java.util.Properties pAttributes)
Converts the supplied String value to an Object value. |
java.lang.String |
getName()
Returns the unique name for the TagConverter. |
TagAttributeDescriptor[] |
getTagAttributeDescriptors()
Returns the list of TagAttributeDescriptors which are used by this converter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public EscapeHTMLTagConverter()
Method Detail |
---|
public TagAttributeDescriptor[] getTagAttributeDescriptors()
TagConverter
getTagAttributeDescriptors
in interface TagConverter
public java.lang.String getName()
TagConverter
getName
in interface TagConverter
public java.lang.Object convertStringToObject(DynamoHttpServletRequest pReq, java.lang.String pValue, java.util.Properties pAttributes) throws TagConversionException
TagConverter
convertStringToObject
in interface TagConverter
pReq
- the request object for this conversion. This object
can be null if the conversion is not performed in the context of
a request.pValue
- The original String value to be converted.pAttributes
- The list of attributes in the tag that is invoking
this converter.
TagConversionException
- if the conversion failed.public java.lang.String convertObjectToString(DynamoHttpServletRequest pReq, java.lang.Object pValue, java.util.Properties pAttributes) throws TagConversionException
TagConverter
convertObjectToString
in interface TagConverter
pReq
- the request this conversion applies to. You can use
this request to obtain the RequestLocale to localize the conversion
process. This can be null if the conversion is not performed in
the context of a request.pValue
- the Object value to be converted to a StringpAttributes
- the set of attributes supplied in this tag
declaration.
TagConversionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |