Examples of AbortWithHttpErrorCodeException


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

            prepareResponse(resourceResponse, webRequest, fileItems);
        }
        catch (Exception fux)
        {
            LOG.error("An error occurred while uploading a file", fux);
            throw new AbortWithHttpErrorCodeException(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, fux.getMessage());
        }

        return resourceResponse;
    }
View Full Code Here

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

 
          if (Strings.isEmpty(cacheUrl.getFileName()))
          {
            if (Application.exists() && Application.get().usesDeploymentConfig())
            {
              throw new AbortWithHttpErrorCodeException(HttpServletResponse.SC_NOT_FOUND,
                "caching strategy returned empty name for " + resource);
            }
            else
            {
              throw new IllegalStateException(
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

        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 (Strings.isEmpty(cacheUrl.getFileName()))
          {
            if (Application.exists() && Application.get().usesDeploymentConfig())
            {
              throw new AbortWithHttpErrorCodeException(HttpServletResponse.SC_NOT_FOUND,
                "caching strategy returned empty name for " + resource);
            }
            else
            {
              throw new IllegalStateException(
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

        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

  {
    final boolean triggerError = parameters.getNamedParameter("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

  {
    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
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.