org.wamblee.wicket.page
Class LoggingPageBehavior

java.lang.Object
  extended by org.wamblee.wicket.page.LoggingPageBehavior
All Implemented Interfaces:
java.io.Serializable, PageBehavior

public class LoggingPageBehavior
extends java.lang.Object
implements PageBehavior

Logs page events.

Author:
Erik Brakkee
See Also:
Serialized Form

Constructor Summary
LoggingPageBehavior(java.util.logging.Level aLevel)
          Constructs the behavior.
 
Method Summary
 void onAfterRender(org.apache.wicket.markup.html.WebPage aPage)
          To be called as part of the Page's onAfterRender
 void onBeforeRender(org.apache.wicket.markup.html.WebPage aPage)
          To be called as part of the Page's onBeforeRender
 void onDetach(org.apache.wicket.markup.html.WebPage aPage)
          To be called in the {@link Page#onDetach
 void setHeaders(org.apache.wicket.markup.html.WebPage aPage, org.apache.wicket.protocol.http.WebResponse aResponse)
          To be called as part of the Page's setHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingPageBehavior

public LoggingPageBehavior(java.util.logging.Level aLevel)
Constructs the behavior.

Method Detail

onBeforeRender

public void onBeforeRender(org.apache.wicket.markup.html.WebPage aPage)
Description copied from interface: PageBehavior
To be called as part of the Page's onBeforeRender

Specified by:
onBeforeRender in interface PageBehavior
Parameters:
aPage - Page this is called for.

setHeaders

public void setHeaders(org.apache.wicket.markup.html.WebPage aPage,
                       org.apache.wicket.protocol.http.WebResponse aResponse)
Description copied from interface: PageBehavior
To be called as part of the Page's setHeaders

Specified by:
setHeaders in interface PageBehavior
Parameters:
aPage - Page this is called for.
aResponse - Response to set headers for.

onAfterRender

public void onAfterRender(org.apache.wicket.markup.html.WebPage aPage)
Description copied from interface: PageBehavior
To be called as part of the Page's onAfterRender

Specified by:
onAfterRender in interface PageBehavior
Parameters:
aPage - Page this is called for.

onDetach

public void onDetach(org.apache.wicket.markup.html.WebPage aPage)
Description copied from interface: PageBehavior
To be called in the {@link Page#onDetach

Specified by:
onDetach in interface PageBehavior


Copyright © 2022. All Rights Reserved.