Package org.apache.wicket.request

Examples of org.apache.wicket.request.IRequestCycleProcessor


   *
   * @return the request processor
   */
  private final IRequestCycleProcessor safeGetRequestProcessor()
  {
    IRequestCycleProcessor processor = getProcessor();
    if (processor == null)
    {
      throw new WicketRuntimeException("request cycle processor must be not-null");
    }
    return processor;
View Full Code Here


  private final void steps()
  {
    try
    {
      // get the processor
      IRequestCycleProcessor processor = safeGetRequestProcessor();

      // Arbitrary maximum number of steps
      final int maxSteps = 100;

      // Loop through steps
View Full Code Here

   *            The url which describes the component path and the interface to be called.
   */
  private void dispatchEvent(final Page page, final String url)
  {
    RequestCycle rc = RequestCycle.get();
    IRequestCycleProcessor processor = rc.getProcessor();
    final RequestParameters requestParameters = processor.getRequestCodingStrategy().decode(
        new FormDispatchRequest(rc.getRequest(), url));
    IRequestTarget rt = processor.resolve(rc, requestParameters);
    if (rt instanceof ListenerInterfaceRequestTarget)
    {
      ListenerInterfaceRequestTarget interfaceTarget = ((ListenerInterfaceRequestTarget)rt);
      interfaceTarget.getRequestListenerInterface().invoke(page, interfaceTarget.getTarget());
    }
View Full Code Here

        if (!(ex instanceof PageExpiredException))
        {
          logRuntimeException(ex);
        }

        IRequestCycleProcessor processor = getProcessor();
        processor.respond(ex, this);
        return;
      }
    }
    else
    {
View Full Code Here

  {
    if (pageClassRef != null && pageClassRef.get() != null)
    {
      if (requestCycle.isRedirect())
      {
        IRequestCycleProcessor processor = requestCycle.getProcessor();
        String redirectUrl = processor.getRequestCodingStrategy().encode(requestCycle, this).toString();
        requestCycle.getResponse().redirect(redirectUrl);
      }
      else
      {
        // Let the page render itself
View Full Code Here

    {
      return requestParameters;
    }

    // get the request encoder to decode the request parameters
    IRequestCycleProcessor processor = RequestCycle.get().getProcessor();
    final IRequestCodingStrategy encoder = processor.getRequestCodingStrategy();
    if (encoder == null)
    {
      throw new WicketRuntimeException("request encoder must be not-null (provided by "
          + processor + ")");
    }
View Full Code Here

        if (!(ex instanceof PageExpiredException))
        {
          logRuntimeException(ex);
        }

        IRequestCycleProcessor processor = getProcessor();
        processor.respond(ex, this);
        return;
      }
    }
    else
    {
View Full Code Here

   *            The url which describes the component path and the interface to be called.
   */
  private void dispatchEvent(final Page page, final String url)
  {
    RequestCycle rc = RequestCycle.get();
    IRequestCycleProcessor processor = rc.getProcessor();
    final RequestParameters requestParameters = processor.getRequestCodingStrategy().decode(
      new FormDispatchRequest(rc.getRequest(), url));
    IRequestTarget rt = processor.resolve(rc, requestParameters);
    if (rt instanceof IListenerInterfaceRequestTarget)
    {
      IListenerInterfaceRequestTarget interfaceTarget = ((IListenerInterfaceRequestTarget)rt);
      interfaceTarget.getRequestListenerInterface().invoke(page, interfaceTarget.getTarget());
    }
View Full Code Here

  }

  public static IRequestTarget getRequestTarget(final URL url) {
    if (url != null) {
      final RequestCycle rc = RequestCycle.get();
      final IRequestCycleProcessor processor = rc.getProcessor();
      final RequestParameters requestParameters = processor.getRequestCodingStrategy().decode(
          new UrlRequest(rc.getRequest(), url));

      try {
        return processor.resolve(rc, requestParameters);
      } catch (final WicketRuntimeException e) {
        // ignore
      }

    }
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.IRequestCycleProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.