|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.tacos.ajax.impl.AjaxDirectServiceImpl
public class AjaxDirectServiceImpl
Implementation of AjaxDirectService
.
Field Summary | |
---|---|
static String |
PROCESS_SCRIPTS
Whether or not processing javascript response |
protected static Random |
rand
Random number generator |
static String |
SERVICE_NAME
Global service name |
static String |
UPDATE_COMPONENTS
List of components to update |
static String |
UPDATE_DIRECT
Whether or not to update components directly |
static String |
VISIBLE_WIDGETS
Visible widgets parameter |
Constructor Summary | |
---|---|
AjaxDirectServiceImpl()
|
Method Summary | |
---|---|
protected boolean |
checkNewPageActivated(org.apache.tapestry.IRequestCycle cycle,
org.apache.tapestry.IPage activePage,
ResponseBuilder responseBuilder)
Checks for cycle.activate(page) calls within page/component listeners. |
AjaxWebRequest |
getAjaxRequest()
Returns an instance of the AjaxWebRequest bound to the current request th read. |
org.apache.tapestry.engine.ILink |
getLink(boolean post,
Object parameter)
|
String |
getName()
|
org.apache.tapestry.engine.IEngineService |
getPageService()
|
org.apache.tapestry.web.WebRequest |
getWebRequest()
|
protected void |
handleRedirect(ResponseBuilder responseBuilder,
String redirectURL)
Redirects the Ajax request to a new page. |
protected void |
renderAjaxResponse(org.apache.tapestry.IRequestCycle cycle,
org.apache.tapestry.IPage renderPage,
org.apache.tapestry.IPage componentPage,
org.apache.tapestry.IComponent component,
ResponseBuilder responseBuilder)
Renders the actual ajax response. |
void |
service(org.apache.tapestry.IRequestCycle cycle)
|
void |
setAjaxRequest(AjaxWebRequest ajaxRequest)
Injected ajax request. |
void |
setDelegateFactory(ResponseDelegateFactory delegateFactory)
Injected delegate for creating responses |
void |
setExceptionPresenter(org.apache.tapestry.error.ExceptionPresenter exceptionPresenter)
Injected exceptionPresenter for processing exception. |
void |
setLinkFactory(org.apache.tapestry.services.LinkFactory linkFactory)
Injected link factory |
void |
setLocaleManager(org.apache.tapestry.services.RequestLocaleManager localeManager)
|
void |
setPageService(org.apache.tapestry.engine.IEngineService pageService)
|
void |
setRequest(org.apache.tapestry.web.WebRequest request)
Injected request |
void |
setRequestCycle(org.apache.tapestry.IRequestCycle requestCycle)
Injected requestCycle |
void |
setResponseRenderer(org.apache.tapestry.services.ResponseRenderer responseRenderer)
Injected response renderer. |
void |
setStaleSessionExceptionPresenter(org.apache.tapestry.error.ExceptionPresenter staleSessionExceptionPresenter)
Injected ExceptionPresenter for processing Stale Session Exception. |
void |
setWebRequest(org.apache.tapestry.web.WebRequest webRequest)
|
void |
setWebResponse(org.apache.tapestry.web.WebResponse webResponse)
Injected response. |
protected void |
triggerComponent(org.apache.tapestry.IRequestCycle cycle,
org.apache.tapestry.IDirect direct)
Called when triggering the listener method of the component/page/etc.. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SERVICE_NAME
public static final String UPDATE_COMPONENTS
public static final String UPDATE_DIRECT
public static final String PROCESS_SCRIPTS
public static final String VISIBLE_WIDGETS
protected static final Random rand
Constructor Detail |
---|
public AjaxDirectServiceImpl()
Method Detail |
---|
public String getName()
getName
in interface org.apache.tapestry.engine.IEngineService
public org.apache.tapestry.engine.ILink getLink(boolean post, Object parameter)
getLink
in interface org.apache.tapestry.engine.IEngineService
public void service(org.apache.tapestry.IRequestCycle cycle) throws IOException
service
in interface org.apache.tapestry.engine.IEngineService
IOException
protected boolean checkNewPageActivated(org.apache.tapestry.IRequestCycle cycle, org.apache.tapestry.IPage activePage, ResponseBuilder responseBuilder)
cycle
- activePage
- responseBuilder
-
protected void handleRedirect(ResponseBuilder responseBuilder, String redirectURL)
protected void triggerComponent(org.apache.tapestry.IRequestCycle cycle, org.apache.tapestry.IDirect direct)
cycle
- direct
- protected void renderAjaxResponse(org.apache.tapestry.IRequestCycle cycle, org.apache.tapestry.IPage renderPage, org.apache.tapestry.IPage componentPage, org.apache.tapestry.IComponent component, ResponseBuilder responseBuilder)
cycle
- renderPage
- componentPage
- component
- responseBuilder
- public void setAjaxRequest(AjaxWebRequest ajaxRequest)
ajaxRequest
- public AjaxWebRequest getAjaxRequest()
getAjaxRequest
in interface AjaxDirectService
public void setWebResponse(org.apache.tapestry.web.WebResponse webResponse)
webResponse
- public void setResponseRenderer(org.apache.tapestry.services.ResponseRenderer responseRenderer)
responseRenderer
- public void setLinkFactory(org.apache.tapestry.services.LinkFactory linkFactory)
linkFactory
- public void setRequest(org.apache.tapestry.web.WebRequest request)
request
- public void setDelegateFactory(ResponseDelegateFactory delegateFactory)
delegateFactory
- public void setRequestCycle(org.apache.tapestry.IRequestCycle requestCycle)
requestCycle
- public void setExceptionPresenter(org.apache.tapestry.error.ExceptionPresenter exceptionPresenter)
exceptionPresenter
- public void setStaleSessionExceptionPresenter(org.apache.tapestry.error.ExceptionPresenter staleSessionExceptionPresenter)
staleSessionExceptionPresenter
- public org.apache.tapestry.engine.IEngineService getPageService()
public void setPageService(org.apache.tapestry.engine.IEngineService pageService)
pageService
- The pageService to set.public org.apache.tapestry.web.WebRequest getWebRequest()
public void setWebRequest(org.apache.tapestry.web.WebRequest webRequest)
webRequest
- The webRequest to set.public void setLocaleManager(org.apache.tapestry.services.RequestLocaleManager localeManager)
localeManager
- The localeManager to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |