org.mentawai.ajax
Interface AjaxRenderer

All Known Implementing Classes:
BeanCollectionAjaxRenderer, JSONArrayAjaxRenderer, JSONGenericRenderer, JSONMapAjaxRenderer, JSONObjectAjaxRenderer, JsonRenderer, MapAjaxRenderer, ResultRenderer, StringAjaxRenderer, StringRenderer, 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 String APP_JS
           
static String APP_JSON
           
static String APP_URLENCODED
           
static String TEXT_HTML
          Content-type for text/html.
static String TEXT_PLAIN
           
static String TEXT_XML
          Content-type for text/xml.
 
Method Summary
 String encode(Object object, Locale loc, boolean pretty)
           
 String getCharset()
           
 String getContentType()
           
 

Field Detail

TEXT_HTML

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

See Also:
Constant Field Values

TEXT_XML

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

See Also:
Constant Field Values

APP_JSON

static final String APP_JSON
See Also:
Constant Field Values

APP_JS

static final String APP_JS
See Also:
Constant Field Values

TEXT_PLAIN

static final String TEXT_PLAIN
See Also:
Constant Field Values

APP_URLENCODED

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

encode

String encode(Object object,
              Locale loc,
              boolean pretty)
              throws Exception
Throws:
Exception

getContentType

String getContentType()

getCharset

String getCharset()


Copyright © 2013. All Rights Reserved.