org.apache.tapestry.services.impl
Class DojoAjaxResponseContributorImpl

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

public class DojoAjaxResponseContributorImpl
extends Object
implements ResponseContributor

Handles determining dojo ajax requests.

Author:
jkuhnert

Field Summary
static String DOJO_AJAX_HEADER
           
 
Constructor Summary
DojoAjaxResponseContributorImpl()
           
 
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 setExceptionPageName(String name)
           
 void setLocaleManager(RequestLocaleManager localeManager)
           
 void setMarkupWriterSource(MarkupWriterSource markupWriterSource)
           
 void setPageService(IEngineService service)
           
 void setStaleLinkPageName(String name)
           
 void setStaleSessionPageName(String name)
           
 void setWebRequest(WebRequest webRequest)
           
 void setWebResponse(WebResponse webResponse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOJO_AJAX_HEADER

public static final String DOJO_AJAX_HEADER
See Also:
Constant Field Values
Constructor Detail

DojoAjaxResponseContributorImpl

public DojoAjaxResponseContributorImpl()
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)

setWebRequest

public void setWebRequest(WebRequest webRequest)

setExceptionPageName

public void setExceptionPageName(String name)

setStaleSessionPageName

public void setStaleSessionPageName(String name)

setStaleLinkPageName

public void setStaleLinkPageName(String name)

setAssetFactory

public void setAssetFactory(AssetFactory factory)

setPageService

public void setPageService(IEngineService service)


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