org.apache.tapestry.services.impl
Class JSONResponseContributorImpl
java.lang.Object
org.apache.tapestry.services.impl.JSONResponseContributorImpl
- All Implemented Interfaces:
- ResponseContributor
public class JSONResponseContributorImpl
- extends Object
- implements ResponseContributor
Determines if incoming request is a valid json request via the "json" http header
or the "json" = "true" request parameter.
- Author:
- jkuhnert
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSON_HEADER
public static final String JSON_HEADER
- See Also:
- Constant Field Values
JSONResponseContributorImpl
public JSONResponseContributorImpl()
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)
setAssetFactory
public void setAssetFactory(AssetFactory factory)
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.