Examples of AbortWithHttpErrorCodeException


Examples of org.apache.wicket.request.http.flow.AbortWithHttpErrorCodeException

        base = getRequestParameters().getParameterValue(PARAM_AJAX_BASE_URL).toString(null);
      }

      if (base == null)
      {
        throw new AbortWithHttpErrorCodeException(HttpServletResponse.SC_BAD_REQUEST,
          "Current ajax request is missing the base url header or parameter");
      }

      return setParameters(Url.parse(base, getCharset()));
    }
View Full Code Here

Examples of org.apache.wicket.request.http.flow.AbortWithHttpErrorCodeException

        base = getRequestParameters().getParameterValue(PARAM_AJAX_BASE_URL).toString(null);
      }

      if (base == null)
      {
        throw new AbortWithHttpErrorCodeException(HttpServletResponse.SC_BAD_REQUEST,
          "Current ajax request is missing the base url header or parameter");
      }

      return setParameters(Url.parse(base, getCharset()));
    }
View Full Code Here

Examples of org.apache.wicket.request.http.flow.AbortWithHttpErrorCodeException

      if (webRequest.isAjax() &&
        !request.getRequestParameters().getParameterValue(SourcesPage.PAGE_CLASS).isNull())
      {
        // If there is a better way to figure out if SourcesPage was the request, we should
        // do that.
        throw new AbortWithHttpErrorCodeException(404, "");
      }
    }
  }
View Full Code Here

Examples of org.apache.wicket.request.http.flow.AbortWithHttpErrorCodeException

        base = getRequestParameters().getParameterValue(PARAM_AJAX_BASE_URL).toString(null);
      }

      if (base == null)
      {
        throw new AbortWithHttpErrorCodeException(HttpServletResponse.SC_BAD_REQUEST,
          "Current ajax request is missing the base url header or parameter");
      }

      return setParameters(Url.parse(base, getCharset()));
    }
View Full Code Here

Examples of org.apache.wicket.request.http.flow.AbortWithHttpErrorCodeException

      if (webRequest.isAjax() &&
        !request.getRequestParameters().getParameterValue(SourcesPage.PAGE_CLASS).isNull())
      {
        // If there is a better way to figure out if SourcesPage was the request, we should
        // do that.
        throw new AbortWithHttpErrorCodeException(404, "");
      }
    }
  }
View Full Code Here

Examples of org.apache.wicket.request.http.flow.AbortWithHttpErrorCodeException

  {
    final boolean triggerError = parameters.get("trigger").toBoolean();

    if (!triggerError)
    {
      throw new AbortWithHttpErrorCodeException(1234, "this error will be rendered");
    }

    IModel<List<Object>> model = new LoadableDetachableModel<List<Object>>()
    {
      private static final long serialVersionUID = -1285116295157071919L;

      @Override
      protected List<Object> load()
      {
        if (triggerError)
        {
          throw new AbortWithHttpErrorCodeException(1234,
            "this error will NOT be rendered");
        }
        else
        {
          return Collections.emptyList();
View Full Code Here

Examples of org.apache.wicket.request.http.flow.AbortWithHttpErrorCodeException

                }
                catch(ConversionException ce)
                {
                    if(throw404OnParseError)
                    {
                        throw new AbortWithHttpErrorCodeException(
                            404,
                            "Not found"
                        );
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.