Package com.avoka.fc.core.page
Class FormPageTrackingInterceptor
- java.lang.Object
-
- com.avoka.fc.core.page.FormPageTrackingInterceptor
-
- All Implemented Interfaces:
org.apache.click.PageInterceptor
public class FormPageTrackingInterceptor extends Object implements org.apache.click.PageInterceptor
Provides a form page tracking Click interceptor which will add form page tracking content to the page model if the page is annotated with theFormPageTracking
and the form has a page tracking configured.
-
-
Constructor Summary
Constructors Constructor Description FormPageTrackingInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
postCreate(org.apache.click.Page page)
Performs additional work after a page has been created.void
postDestroy(org.apache.click.Page page)
Perrforms additional work after a page has been destroyed.boolean
preCreate(Class<? extends org.apache.click.Page> pageClass, org.apache.click.Context context)
Performs additional work when a page is being created.boolean
preResponse(org.apache.click.Page page)
Performs additional work before page response processing.
-
-
-
Method Detail
-
preCreate
public boolean preCreate(Class<? extends org.apache.click.Page> pageClass, org.apache.click.Context context)
Performs additional work when a page is being created. This implementation does nothing.- Specified by:
preCreate
in interfaceorg.apache.click.PageInterceptor
- Parameters:
pageClass
- the class of the page to be instantiatedcontext
- the page request context- Returns:
- true
- See Also:
PageInterceptor.preCreate(Class, Context)
-
postCreate
public boolean postCreate(org.apache.click.Page page)
Performs additional work after a page has been created. This implementation does nothing.- Specified by:
postCreate
in interfaceorg.apache.click.PageInterceptor
- Parameters:
page
- the newly instantiated page instance- Returns:
- true
- See Also:
PageInterceptor.postCreate(Page)
-
preResponse
public boolean preResponse(org.apache.click.Page page)
Performs additional work before page response processing. This implementation injects additional tracking content into the page model.- Specified by:
preResponse
in interfaceorg.apache.click.PageInterceptor
- Parameters:
page
- the newly instantiated page instance- Returns:
- true to continue normal page processing or false whereby the request is considered to be handled
- See Also:
PageInterceptor.preResponse(Page)
-
postDestroy
public void postDestroy(org.apache.click.Page page)
Perrforms additional work after a page has been destroyed. This implementation does nothing.- Specified by:
postDestroy
in interfaceorg.apache.click.PageInterceptor
- Parameters:
page
- the page object which has just been destroyed- See Also:
PageInterceptor.postDestroy(Page)
-
-