net.sf.tacos.ajax
Interface ResponseContributor

All Known Implementing Classes:
PrototypeResponseContributorImpl, RicoResponseContributorImpl

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(IRequestCycle cycle, WebRequest request)
          Creates the appropriate ResponseBuilder instance to handle the incoming ajax request.
 boolean handlesResponse(IRequestCycle cycle, WebRequest request)
          Determines if the incoming ajax request is capable of being handled by the ResponseBuilder this contributor manages.
 

Method Detail

handlesResponse

public boolean handlesResponse(IRequestCycle cycle,
                               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

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

Parameters:
cycle -
request -
Returns: