net.sf.tacos.ajax.contrib
Class DojoResponseContributorImpl

java.lang.Object
  extended by net.sf.tacos.ajax.contrib.DojoResponseContributorImpl
All Implemented Interfaces:
ResponseContributor

public class DojoResponseContributorImpl
extends Object
implements ResponseContributor

Determines if incoming request is a valid dojo request via the javascript added parameter of "dojoRequest" = "true".

Author:
ebin111

Field Summary
static String DOJO_PARM
          Dojo request param name
 
Constructor Summary
DojoResponseContributorImpl()
           
 
Method Summary
 ResponseBuilder createBuilder(org.apache.tapestry.IRequestCycle cycle, org.apache.tapestry.web.WebRequest request)
          Creates the appropriate ResponseBuilder instance to handle the incoming ajax request.
 boolean handlesResponse(org.apache.tapestry.IRequestCycle cycle, org.apache.tapestry.web.WebRequest request)
          Determines if the incoming ajax request is capable of being handled by the ResponseBuilder this contributor manages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOJO_PARM

public static final String DOJO_PARM
Dojo request param name

See Also:
Constant Field Values
Constructor Detail

DojoResponseContributorImpl

public DojoResponseContributorImpl()
Method Detail

createBuilder

public ResponseBuilder createBuilder(org.apache.tapestry.IRequestCycle cycle,
                                     org.apache.tapestry.web.WebRequest request)
Creates the appropriate ResponseBuilder instance to handle the incoming ajax request.

Specified by:
createBuilder in interface ResponseContributor
Returns:

handlesResponse

public boolean handlesResponse(org.apache.tapestry.IRequestCycle cycle,
                               org.apache.tapestry.web.WebRequest request)
Determines if the incoming ajax request is capable of being handled by the ResponseBuilder this contributor manages.

Specified by:
handlesResponse in interface ResponseContributor
Parameters:
cycle - Main request cycle
request - HttpRequest associated with request
Returns:
True if can handle request, false otherwise.