org.mentawai.ajax.renderer
Class BeanCollectionAjaxRenderer

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

public class BeanCollectionAjaxRenderer
extends java.lang.Object
implements AjaxRenderer


Field Summary
static java.lang.String DEFAULT_ENTRY_TAG
           
static java.lang.String DEFAULT_ROOT_TAG
           
 
Fields inherited from interface org.mentawai.ajax.AjaxRenderer
APP_JSON, APP_URLENCODED, TEXT_HTML, TEXT_XML
 
Constructor Summary
BeanCollectionAjaxRenderer(java.lang.String[] subTagsAttrs, java.lang.String[] attrsAttrs)
           
BeanCollectionAjaxRenderer(java.lang.String rootTag, java.lang.String childTag, java.lang.String[] subTagsAttrs, java.lang.String[] attrsAttrs)
           
 
Method Summary
 java.lang.String encode(java.lang.Object obj, java.util.Locale loc, boolean pretty)
           
 java.lang.String getCharset()
           
 java.lang.String getContentType()
           
static void main(java.lang.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 java.lang.String DEFAULT_ROOT_TAG
See Also:
Constant Field Values

DEFAULT_ENTRY_TAG

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

BeanCollectionAjaxRenderer

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

BeanCollectionAjaxRenderer

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

encode

public java.lang.String encode(java.lang.Object obj,
                               java.util.Locale loc,
                               boolean pretty)
                        throws java.lang.Exception
Specified by:
encode in interface AjaxRenderer
Throws:
java.lang.Exception

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface AjaxRenderer

getCharset

public java.lang.String getCharset()
Specified by:
getCharset in interface AjaxRenderer

main

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


Copyright © 2005 Mentawai Team. All Rights Reserved.