net.sf.tacos.partial
Class PartialService

java.lang.Object
  extended bynet.sf.tacos.partial.PartialService
All Implemented Interfaces:
IEngineService, IPartialService

public class PartialService
extends Object
implements IPartialService

DirectService with support for Partial Page Rendering.


Field Summary
static String AJAX_HEADER
          Ajax request header
static String PART_ID
          Part being rendered
static String REFRESH_PARTS
          List of parts to refresh
static String SERVICE_NAME
          Global service name
 
Constructor Summary
PartialService()
           
 
Method Summary
 ILink getLink(IRequestCycle cycle, boolean post, Object parameter)
           
 String getName()
           
static Set getPartIds()
          Get Part IDs for the current render cycle.
static IMarkupWriter getPartWriter(String partId)
           
static boolean isPartialRender()
           
 void service(IRequestCycle cycle)
           
 void setLinkFactory(LinkFactory linkFactory)
           
 void setRequest(WebRequest request)
           
 void setResponseRenderer(ResponseRenderer responseRenderer)
           
 void setWebResponse(WebResponse webResponse)
           
 
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

PART_ID

public static final String PART_ID
Part being rendered

See Also:
Constant Field Values

REFRESH_PARTS

public static final String REFRESH_PARTS
List of parts to refresh

See Also:
Constant Field Values

AJAX_HEADER

public static final String AJAX_HEADER
Ajax request header

See Also:
Constant Field Values
Constructor Detail

PartialService

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

setWebResponse

public void setWebResponse(WebResponse webResponse)

setResponseRenderer

public void setResponseRenderer(ResponseRenderer responseRenderer)

setLinkFactory

public void setLinkFactory(LinkFactory linkFactory)

setRequest

public void setRequest(WebRequest request)

isPartialRender

public static boolean isPartialRender()
Returns:
true if current render cycle is a partial one

getPartIds

public static Set getPartIds()
Get Part IDs for the current render cycle. This Set can be mutated before the rendition starts (ie. in the listener).

Returns:
Set of String

getPartWriter

public static IMarkupWriter getPartWriter(String partId)