net.sf.tacos.ajax.impl
Class AjaxDirectServiceImpl

java.lang.Object
  extended bynet.sf.tacos.ajax.impl.AjaxDirectServiceImpl
All Implemented Interfaces:
AjaxDirectService, IEngineService

public class AjaxDirectServiceImpl
extends Object
implements AjaxDirectService

Implementation of AjaxDirectService.

Author:
jkuhnert

Field Summary
protected static Random rand
          Random number generator
static String SERVICE_NAME
          Global service name
static String UPDATE_BLOCKS
          List of blocks to update
static String UPDATE_COMPONENTS
          List of components to update
static String UPDATE_DIRECT
          Whether or not to update components directly
 
Constructor Summary
AjaxDirectServiceImpl()
           
 
Method Summary
 AjaxWebRequest getAjaxRequest()
          Returns an instance of the AjaxWebRequest bound to the current request thread.
 ILink getLink(IRequestCycle cycle, boolean post, Object parameter)
          
 String getName()
          
 void service(IRequestCycle cycle)
          
 void setAjaxRequest(AjaxWebRequest ajaxRequest)
          Injected ajax request.
 void setDelegateFactory(ResponseDelegateFactory delegateFactory)
          Injected delegate for creating responses
 void setLinkFactory(LinkFactory linkFactory)
          Injected link factory
 void setRequest(WebRequest request)
          Injected request
 void setResponseRenderer(ResponseRenderer responseRenderer)
          Injected response renderer.
 void setWebResponse(WebResponse webResponse)
          Injected response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final String SERVICE_NAME
Global service name

See Also:
Constant Field Values

UPDATE_COMPONENTS

public static final String UPDATE_COMPONENTS
List of components to update

See Also:
Constant Field Values

UPDATE_BLOCKS

public static final String UPDATE_BLOCKS
List of blocks to update

See Also:
Constant Field Values

UPDATE_DIRECT

public static final String UPDATE_DIRECT
Whether or not to update components directly

See Also:
Constant Field Values

rand

protected static final Random rand
Random number generator

Constructor Detail

AjaxDirectServiceImpl

public AjaxDirectServiceImpl()
Method Detail

getName

public String getName()

Specified by:
getName in interface IEngineService

getLink

public ILink getLink(IRequestCycle cycle,
                     boolean post,
                     Object parameter)

Specified by:
getLink in interface IEngineService

service

public void service(IRequestCycle cycle)
             throws IOException

Specified by:
service in interface IEngineService
Throws:
IOException

setAjaxRequest

public void setAjaxRequest(AjaxWebRequest ajaxRequest)
Injected ajax request.

Parameters:
ajaxRequest -

getAjaxRequest

public AjaxWebRequest getAjaxRequest()
Returns an instance of the AjaxWebRequest bound to the current request thread.

Specified by:
getAjaxRequest in interface AjaxDirectService
Returns:
The instance, if valid and available.

setWebResponse

public void setWebResponse(WebResponse webResponse)
Injected response.

Parameters:
webResponse -

setResponseRenderer

public void setResponseRenderer(ResponseRenderer responseRenderer)
Injected response renderer.

Parameters:
responseRenderer -

setLinkFactory

public void setLinkFactory(LinkFactory linkFactory)
Injected link factory

Parameters:
linkFactory -

setRequest

public void setRequest(WebRequest request)
Injected request

Parameters:
request -

setDelegateFactory

public void setDelegateFactory(ResponseDelegateFactory delegateFactory)
Injected delegate for creating responses

Parameters:
delegateFactory -