net.sf.tacos.ajax
Interface ResponseContributor

All Known Implementing Classes:
DojoResponseContributorImpl, PrototypeResponseContributorImpl

public interface ResponseContributor

Determines if the particular incoming ajax request is handled by this contributor/library response type. If it is will also provide an instance of the appropriate ResponseBuilder.

Author:
jkuhnert

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.
 

Method Detail

handlesResponse

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.

Parameters:
cycle - Main request cycle
request - HttpRequest associated with request
Returns:
True if can handle request, false otherwise.

createBuilder

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

Parameters:
cycle -
request -
Returns: