net.sf.tacos.ajax.contrib
Class DojoResponseContributorImpl
java.lang.Object
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
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 |
DOJO_PARM
public static final String DOJO_PARM
- Dojo request param name
- See Also:
- Constant Field Values
DojoResponseContributorImpl
public DojoResponseContributorImpl()
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 cyclerequest
- HttpRequest associated with request
- Returns:
- True if can handle request, false otherwise.