org.mentawai.ajax.renderer
Class BeanCollectionAjaxRenderer

java.lang.Object
  extended by org.mentawai.ajax.renderer.BeanCollectionAjaxRenderer
All Implemented Interfaces:
AjaxRenderer

public class BeanCollectionAjaxRenderer
extends Object
implements AjaxRenderer


Field Summary
static String DEFAULT_ENTRY_TAG
           
static String DEFAULT_ROOT_TAG
           
 
Fields inherited from interface org.mentawai.ajax.AjaxRenderer
APP_JS, APP_JSON, APP_URLENCODED, TEXT_HTML, TEXT_PLAIN, TEXT_XML
 
Constructor Summary
BeanCollectionAjaxRenderer(String[] subTagsAttrs, String[] attrsAttrs)
           
BeanCollectionAjaxRenderer(String rootTag, String childTag, String[] subTagsAttrs, String[] attrsAttrs)
           
 
Method Summary
 String encode(Object obj, Locale loc, boolean pretty)
           
 String getCharset()
           
 String getContentType()
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ROOT_TAG

public static final String DEFAULT_ROOT_TAG
See Also:
Constant Field Values

DEFAULT_ENTRY_TAG

public static final String DEFAULT_ENTRY_TAG
See Also:
Constant Field Values
Constructor Detail

BeanCollectionAjaxRenderer

public BeanCollectionAjaxRenderer(String rootTag,
                                  String childTag,
                                  String[] subTagsAttrs,
                                  String[] attrsAttrs)

BeanCollectionAjaxRenderer

public BeanCollectionAjaxRenderer(String[] subTagsAttrs,
                                  String[] attrsAttrs)
Method Detail

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

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.