org.mentawai.ajax
Interface AjaxRenderer

All Known Implementing Classes:
BeanCollectionAjaxRenderer, JSONArrayAjaxRenderer, JSONGenericRenderer, JSONMapAjaxRenderer, JSONObjectAjaxRenderer, MapAjaxRenderer, StringAjaxRenderer, XStreamRenderer

public interface AjaxRenderer

This class will generate a document representation from a Java object. The document representation is usually XML or JSON.

Author:
soliveira, Rubem Azenha

Field Summary
static java.lang.String APP_JSON
           
static java.lang.String APP_URLENCODED
           
static java.lang.String TEXT_HTML
          Content-type for text/html.
static java.lang.String TEXT_XML
          Content-type for text/xml.
 
Method Summary
 java.lang.String encode(java.lang.Object object, java.util.Locale loc, boolean pretty)
           
 java.lang.String getCharset()
           
 java.lang.String getContentType()
           
 

Field Detail

TEXT_HTML

static final java.lang.String TEXT_HTML
Content-type for text/html.

See Also:
Constant Field Values

TEXT_XML

static final java.lang.String TEXT_XML
Content-type for text/xml.

See Also:
Constant Field Values

APP_JSON

static final java.lang.String APP_JSON
See Also:
Constant Field Values

APP_URLENCODED

static final java.lang.String APP_URLENCODED
See Also:
Constant Field Values
Method Detail

encode

java.lang.String encode(java.lang.Object object,
                        java.util.Locale loc,
                        boolean pretty)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getContentType

java.lang.String getContentType()

getCharset

java.lang.String getCharset()


Copyright © 2005 Mentawai Team. All Rights Reserved.