org.mentawai.ajax.renderer
Class StringAjaxRenderer
java.lang.Object
org.mentawai.ajax.renderer.StringAjaxRenderer
- All Implemented Interfaces:
- AjaxRenderer
public class StringAjaxRenderer
- extends Object
- implements AjaxRenderer
A AjaxRender that creates a XML structure from
a given String.
By default, it gets from the action's output a String identified by the key "value" and
generates a XML structure with a sigle tag named "value", with the body content as the value
from the output, but this behavior can be changed at the constructor.
Example of a generated XML:
<value>valueFromOutput</value>
- Author:
- Rubem Azenha (rubem.azenha@gmail.com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringAjaxRenderer
public StringAjaxRenderer()
StringAjaxRenderer
public StringAjaxRenderer(String tagName)
encode
public String encode(Object obj,
Locale loc,
boolean pretty)
throws Exception
- Specified by:
encode
in interface AjaxRenderer
- Throws:
Exception
getContentType
public String getContentType()
- Specified by:
getContentType
in interface AjaxRenderer
getCharset
public String getCharset()
- Specified by:
getCharset
in interface AjaxRenderer
Copyright © 2013. All Rights Reserved.