org.apache.wicket.request.handler
Class BookmarkableListenerInterfaceRequestHandler

java.lang.Object
  extended by org.apache.wicket.request.handler.BookmarkableListenerInterfaceRequestHandler
All Implemented Interfaces:
IComponentRequestHandler, IPageClassRequestHandler, IPageRequestHandler, IRequestHandler

public class BookmarkableListenerInterfaceRequestHandler
extends java.lang.Object
implements IPageRequestHandler, IComponentRequestHandler

Request handler for bookmarkable pages with listener interface. This handler is only used to generate URLs. Rendering is always handled by ListenerInterfaceRequestHandler.

Author:
Matej Knopp

Constructor Summary
BookmarkableListenerInterfaceRequestHandler(IPageAndComponentProvider pageComponentProvider, RequestListenerInterface listenerInterface, java.lang.Integer behaviorIndex)
          Construct.
BookmarkableListenerInterfaceRequestHandler(PageAndComponentProvider pageComponentProvider, RequestListenerInterface listenerInterface)
          Construct.
 
Method Summary
 void detach(IRequestCycle requestCycle)
          This method is called at the end of a request cycle to indicate that processing is done and that cleaning up of the subject(s) of this target may be done.
 java.lang.Integer getBehaviorIndex()
          Returns index of behavior this listener is targeted on or null if component is the target
 IRequestableComponent getComponent()
          Returns the component instance.
 RequestListenerInterface getListenerInterface()
          Returns the listener interface.
 IRequestablePage getPage()
          Returns the page
 java.lang.Class<? extends IRequestablePage> getPageClass()
          Returns the page class
 PageParameters getPageParameters()
           
 void respond(IRequestCycle requestCycle)
          Generates a response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookmarkableListenerInterfaceRequestHandler

public BookmarkableListenerInterfaceRequestHandler(IPageAndComponentProvider pageComponentProvider,
                                                   RequestListenerInterface listenerInterface,
                                                   java.lang.Integer behaviorIndex)
Construct.

Parameters:
pageComponentProvider -
listenerInterface -
behaviorIndex -

BookmarkableListenerInterfaceRequestHandler

public BookmarkableListenerInterfaceRequestHandler(PageAndComponentProvider pageComponentProvider,
                                                   RequestListenerInterface listenerInterface)
Construct.

Parameters:
pageComponentProvider -
component -
listenerInterface -
Method Detail

getComponent

public IRequestableComponent getComponent()
Description copied from interface: IComponentRequestHandler
Returns the component instance.

Specified by:
getComponent in interface IComponentRequestHandler
Returns:
component instance
See Also:
IComponentRequestHandler.getComponent()

getPage

public IRequestablePage getPage()
Description copied from interface: IPageRequestHandler
Returns the page

Specified by:
getPage in interface IPageRequestHandler
Returns:
page instance
See Also:
IPageRequestHandler.getPage()

getPageClass

public java.lang.Class<? extends IRequestablePage> getPageClass()
Description copied from interface: IPageClassRequestHandler
Returns the page class

Specified by:
getPageClass in interface IPageClassRequestHandler
Returns:
page class
See Also:
IPageClassRequestHandler.getPageClass()

getPageParameters

public PageParameters getPageParameters()
Specified by:
getPageParameters in interface IPageClassRequestHandler
Returns:
page parameters
See Also:
IPageClassRequestHandler.getPageParameters()

detach

public void detach(IRequestCycle requestCycle)
Description copied from interface: IRequestHandler
This method is called at the end of a request cycle to indicate that processing is done and that cleaning up of the subject(s) of this target may be done.

Specified by:
detach in interface IRequestHandler
Parameters:
requestCycle - the current request cycle
See Also:
org.apache.org.apache.wicket.request.IRequestHandler#detach(org.apache.wicket.request.cycle.RequestCycle)

getListenerInterface

public RequestListenerInterface getListenerInterface()
Returns the listener interface.

Returns:
listener interface

getBehaviorIndex

public java.lang.Integer getBehaviorIndex()
Returns index of behavior this listener is targeted on or null if component is the target

Returns:
behavior index or null

respond

public void respond(IRequestCycle requestCycle)
Description copied from interface: IRequestHandler
Generates a response.

Specified by:
respond in interface IRequestHandler
Parameters:
requestCycle - the current request cycle
See Also:
org.apache.org.apache.wicket.request.IRequestHandler#respond(org.apache.wicket.request.cycle.RequestCycle)


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.