Codota Logo
BookmarkablePageRequestTarget.getPageClass
Code IndexAdd Codota to your IDE (free)

How to use
getPageClass
method
in
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget

Best Java code snippets using org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPageClass (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @see java.lang.Object#hashCode()
 */
public int hashCode()
{
  int result = "BookmarkablePageRequestTarget".hashCode();
  result += getPageClass().hashCode();
  result += pageMapName != null ? pageMapName.hashCode() : 0;
  return 17 * result;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see java.lang.Object#hashCode()
 */
@Override
public int hashCode()
{
  int result = "BookmarkablePageRequestTarget".hashCode();
  result += getPageClass().hashCode();
  result += pageMapName != null ? pageMapName.hashCode() : 0;
  return 17 * result;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @see java.lang.Object#toString()
 */
public String toString()
{
  return "[BookmarkablePageRequestTarget@" + hashCode() + " pageClass=" +
    getPageClass().getName() + "]";
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @see java.lang.Object#equals(java.lang.Object)
 */
public boolean equals(Object obj)
{
  boolean equal = false;
  if (obj != null && (obj instanceof BookmarkablePageRequestTarget))
  {
    BookmarkablePageRequestTarget that = (BookmarkablePageRequestTarget)obj;
    if (getPageClass().equals(that.getPageClass()))
    {
      boolean mapMatch = false;
      if (pageMapName != null)
      {
        mapMatch = (that.pageMapName != null && pageMapName.equals(that.pageMapName));
      }
      else
      {
        mapMatch = (that.pageMapName == null);
      }
      equal = mapMatch;
    }
  }
  return equal;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see java.lang.Object#equals(java.lang.Object)
 */
@Override
public boolean equals(Object obj)
{
  boolean equal = false;
  if (obj != null && (obj instanceof BookmarkablePageRequestTarget))
  {
    BookmarkablePageRequestTarget that = (BookmarkablePageRequestTarget)obj;
    if (getPageClass().equals(that.getPageClass()))
    {
      boolean mapMatch = false;
      if (pageMapName != null)
      {
        mapMatch = (that.pageMapName != null && pageMapName.equals(that.pageMapName));
      }
      else
      {
        mapMatch = (that.pageMapName == null);
      }
      equal = mapMatch;
    }
  }
  return equal;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see java.lang.Object#toString()
 */
@Override
public String toString()
{
  return "[BookmarkablePageRequestTarget@" + hashCode() + " pageClass=" +
    getPageClass().getName() + "]";
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy#matches(org.apache.wicket.IRequestTarget)
 */
public boolean matches(final IRequestTarget requestTarget)
{
  if (requestTarget instanceof BookmarkablePageRequestTarget)
  {
    BookmarkablePageRequestTarget target = (BookmarkablePageRequestTarget)requestTarget;
    return target.getPageClass().equals(pageClassRef.get());
  }
  else if (requestTarget instanceof ListenerInterfaceRequestTarget)
  {
    ListenerInterfaceRequestTarget target = (ListenerInterfaceRequestTarget)requestTarget;
    return target.getPage().getClass().equals(pageClassRef.get()) &&
      target.getRequestListenerInterface().equals(IRedirectListener.INTERFACE);
  }
  return false;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @see org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy#matches(org.apache.wicket.IRequestTarget)
 */
public boolean matches(IRequestTarget requestTarget)
{
  if (requestTarget instanceof BookmarkablePageRequestTarget)
  {
    BookmarkablePageRequestTarget target = (BookmarkablePageRequestTarget)requestTarget;
    return target.getPageClass().equals(pageClassRef.get());
  }
  else if (requestTarget instanceof ListenerInterfaceRequestTarget)
  {
    ListenerInterfaceRequestTarget target = (ListenerInterfaceRequestTarget)requestTarget;
    return target.getPage().getClass().equals(pageClassRef.get()) &&
      target.getRequestListenerInterface().equals(IRedirectListener.INTERFACE);
  }
  return false;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Gets a newly constructed page if we are not in a redirect.
 * 
 * @param requestCycle
 *            the request cycle
 * @return the page
 */
protected final Page getPage(RequestCycle requestCycle)
{
  if (page == null && !requestCycle.isRedirect())
  {
    page = newPage(getPageClass(), requestCycle);
  }
  return page;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Gets a newly constructed page if we are not in a redirect.
 * 
 * @param requestCycle
 *            the request cycle
 * @return the page
 */
protected final Page getPage(RequestCycle requestCycle)
{
  if (page == null && !requestCycle.isRedirect())
  {
    page = newPage(getPageClass(), requestCycle);
  }
  return page;
}
origin: org.wicketstuff/spring-webflow

/** {@inheritDoc} */
@Override
protected IRequestTarget resolveHomePageTarget(RequestCycle requestCycle, RequestParameters requestParameters)
{
  
  //Grab the target as Wicket would normally calculate it
  BookmarkablePageRequestTarget classicTarget =(BookmarkablePageRequestTarget) super.resolveHomePageTarget(requestCycle, requestParameters);
  BookmarkablePageRequestTarget newTarget =  resolvePageFlowTargets(classicTarget,requestCycle,requestParameters);
  
  //If the target that PageFlow is returning isn't the real home page we need to redirect to it.
  if(!classicTarget.getPageClass().equals(newTarget.getPageClass())){
    
    //Redirect to the homepage if session is trying to go to the end of the flow since we are restarting it
    String currentStateFromSession = PageFlowSession.get().getFlowState().getCurrentViewState();
    if(PageFlowConstants.PAGE_FLOW_FINAL_STATE_DONE.equals(currentStateFromSession)){
      //Reset the whole flow state in preparation for a new flow
      PageFlowSession.get().resetFlowState();
      
      // This line is to reset the target because the flowstate was just reset so the url needs to be regenerated
      classicTarget =(BookmarkablePageRequestTarget) super.resolveHomePageTarget(requestCycle, requestParameters);
      
      return classicTarget;
    }
    
    throw new RestartResponseException(newTarget.getPageClass(), newTarget.getPageParameters());
  }
  
  return resolvePageFlowTargets(classicTarget,requestCycle,requestParameters); 
}

origin: org.ops4j.pax.wicket/pax-wicket-service

if (bt.getPageClass().equals(Application.get().getHomePage()))
org.apache.wicket.request.target.componentBookmarkablePageRequestTargetgetPageClass

Popular methods of BookmarkablePageRequestTarget

  • <init>
    Construct.
  • getPageParameters
  • getPage
    Gets a newly constructed page if we are not in a redirect.
  • getPageMapName
  • hashCode
  • newPage
    Constructs a new instance of a page given its class name
  • respond

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now