org.apache.wicket.request.target.coding
Class HybridUrlCodingStrategy.HybridBookmarkablePageRequestTarget

java.lang.Object
  extended by org.apache.wicket.request.target.component.BookmarkablePageRequestTarget
      extended by org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.HybridBookmarkablePageRequestTarget
All Implemented Interfaces:
IRequestTarget, IBookmarkablePageRequestTarget, IEventProcessor
Enclosing class:
HybridUrlCodingStrategy

public static class HybridUrlCodingStrategy.HybridBookmarkablePageRequestTarget
extends BookmarkablePageRequestTarget

BookmarkablePage request target that does a redirect after bookmarkable page was rendered (only if the bookmarkable page is stateful though)

Author:
Matej Knopp

Constructor Summary
HybridUrlCodingStrategy.HybridBookmarkablePageRequestTarget(java.lang.String pageMapName, java.lang.Class pageClass, PageParameters pageParameters, int originalUrlTrailingSlashesCount, boolean redirect)
          Construct.
 
Method Summary
protected  Page newPage(java.lang.Class pageClass, RequestCycle requestCycle)
          Constructs a new instance of a page given its class name
 void respond(RequestCycle requestCycle)
          Generates a response.
 
Methods inherited from class org.apache.wicket.request.target.component.BookmarkablePageRequestTarget
detach, equals, getPage, getPage, getPageClass, getPageMapName, getPageParameters, hashCode, processEvents, setPage, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HybridUrlCodingStrategy.HybridBookmarkablePageRequestTarget

public HybridUrlCodingStrategy.HybridBookmarkablePageRequestTarget(java.lang.String pageMapName,
                                                                   java.lang.Class pageClass,
                                                                   PageParameters pageParameters,
                                                                   int originalUrlTrailingSlashesCount,
                                                                   boolean redirect)
Construct.

Parameters:
pageMapName -
pageClass -
pageParameters -
originalUrlTrailingSlashesCount -
redirect -
Method Detail

newPage

protected Page newPage(java.lang.Class pageClass,
                       RequestCycle requestCycle)
Description copied from class: BookmarkablePageRequestTarget
Constructs a new instance of a page given its class name

Overrides:
newPage in class BookmarkablePageRequestTarget
Parameters:
pageClass - class name of the page to be created
requestCycle - request cycle
Returns:
new instance of page

respond

public void respond(RequestCycle requestCycle)
Description copied from interface: IRequestTarget
Generates a response.

Specified by:
respond in interface IRequestTarget
Overrides:
respond in class BookmarkablePageRequestTarget
Parameters:
requestCycle - the current request cycle
See Also:
IRequestTarget.respond(org.apache.wicket.RequestCycle)


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