org.apache.tapestry.services.impl
Class DefaultResponseContributorImpl

java.lang.Object
  extended by org.apache.tapestry.services.impl.DefaultResponseContributorImpl
All Implemented Interfaces:
ResponseContributor

public class DefaultResponseContributorImpl
extends Object
implements ResponseContributor

Factory that is used if no other has been chosen, handles normal html responses. TODO: Should probably implement this as a hivemind pipeline.

Author:
jkuhnert

Field Summary
protected  AssetFactory _assetFactory
           
protected  RequestLocaleManager _localeManager
           
protected  MarkupWriterSource _markupWriterSource
           
protected  WebResponse _webResponse
           
 
Constructor Summary
DefaultResponseContributorImpl()
           
 
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.
 void setAssetFactory(AssetFactory factory)
           
 void setLocaleManager(RequestLocaleManager localeManager)
           
 void setMarkupWriterSource(MarkupWriterSource markupWriterSource)
           
 void setWebResponse(WebResponse webResponse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_localeManager

protected RequestLocaleManager _localeManager

_markupWriterSource

protected MarkupWriterSource _markupWriterSource

_webResponse

protected WebResponse _webResponse

_assetFactory

protected AssetFactory _assetFactory
Constructor Detail

DefaultResponseContributorImpl

public DefaultResponseContributorImpl()
Method Detail

createBuilder

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

Specified by:
createBuilder in interface ResponseContributor
Parameters:
cycle - The incoming request cycle for this request.
Returns:
A newly created response builder.
Throws:
IOException

handlesResponse

public boolean handlesResponse(IRequestCycle cycle)
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 for this request.
Returns:
True if can handle request, false otherwise.

setLocaleManager

public void setLocaleManager(RequestLocaleManager localeManager)

setMarkupWriterSource

public void setMarkupWriterSource(MarkupWriterSource markupWriterSource)

setWebResponse

public void setWebResponse(WebResponse webResponse)

setAssetFactory

public void setAssetFactory(AssetFactory factory)


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