org.mentawai.ajax
Class AjaxConsequence

java.lang.Object
  extended by org.mentawai.ajax.AjaxConsequence
All Implemented Interfaces:
Consequence

public class AjaxConsequence
extends Object
implements Consequence


Field Summary
static String DEFAULT_CHARSET
           
static String OBJECT
           
 
Constructor Summary
AjaxConsequence(AjaxRenderer renderer)
           
AjaxConsequence(AjaxRenderer renderer, boolean pretty)
           
 
Method Summary
 void execute(Action a, String result, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Prints in the request's output the ajax response.
 AjaxConsequence keyForObject(String key)
           
 AjaxConsequence source(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT

public static String OBJECT

DEFAULT_CHARSET

public static String DEFAULT_CHARSET
Constructor Detail

AjaxConsequence

public AjaxConsequence(AjaxRenderer renderer)

AjaxConsequence

public AjaxConsequence(AjaxRenderer renderer,
                       boolean pretty)
Method Detail

keyForObject

public AjaxConsequence keyForObject(String key)

source

public AjaxConsequence source(String key)

execute

public void execute(Action a,
                    String result,
                    javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws ConsequenceException
Prints in the request's output the ajax response. The ajax response is supplied by the AjaxRenderer.

Specified by:
execute in interface Consequence
Parameters:
a - The action that generated this consequence.
result - The result generated by the action.
req - The servlet request of the action.
res - The servlet response of the action.
Throws:
ConsequenceException


Copyright © 2013. All Rights Reserved.