net.sf.tacos.ajax.contrib
Class RicoResponseContributorImpl

java.lang.Object
  extended bynet.sf.tacos.ajax.contrib.RicoResponseContributorImpl
All Implemented Interfaces:
ResponseContributor

public class RicoResponseContributorImpl
extends Object
implements ResponseContributor

Implementation of ResponseContributor that handles rico client requests.

Author:
jkuhnert

Field Summary
static String REQUEST_TYPE_RICO
          Header for Rico requests
static String RICO_VERSION
          Currently supported rico version
 
Constructor Summary
RicoResponseContributorImpl()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST_TYPE_RICO

public static final String REQUEST_TYPE_RICO
Header for Rico requests

See Also:
Constant Field Values

RICO_VERSION

public static final String RICO_VERSION
Currently supported rico version

See Also:
Constant Field Values
Constructor Detail

RicoResponseContributorImpl

public RicoResponseContributorImpl()
Method Detail

createBuilder

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

Specified by:
createBuilder in interface ResponseContributor
Parameters:
cycle -
request -
Returns:

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.

Specified by:
handlesResponse in interface ResponseContributor
Parameters:
cycle - Main request cycle
request - HttpRequest associated with request
Returns:
True if can handle request, false otherwise.