org.apache.tapestry.services
Interface ResponseContributor

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

Method Detail

handlesResponse

boolean handlesResponse(IRequestCycle cycle)
Determines if the incoming ajax request is capable of being handled by the ResponseBuilder this contributor manages.

Parameters:
cycle - Main request cycle for this request.
Returns:
True if can handle request, false otherwise.

createBuilder

ResponseBuilder createBuilder(IRequestCycle cycle)
                              throws IOException
Creates the appropriate ResponseBuilder instance to handle the incoming ajax request.

Parameters:
cycle - The incoming request cycle for this request.
Returns:
A newly created response builder.
Throws:
IOException


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.