Examples of AbortWithWebErrorCodeException


Examples of org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException

            String msg = "Direct access not allowed for mounted targets";
            // the target was mounted, but we got here via another path
            // : deny the request
            log.error(msg + " [request=" + requestCycle.getRequest() + ",target=" +
              target + ",session=" + Session.get() + "]");
            throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_FORBIDDEN,
              msg);
          }
        }
      }
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException

  public AbortExceptionPage(PageParameters parameters)
  {
    final boolean triggerError = parameters.getBoolean("trigger");

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

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

      protected Object load()
      {
        if (triggerError)
          throw new AbortWithWebErrorCodeException(1234,
            "this error will NOT be rendered");
        else
          return Collections.EMPTY_LIST;
      }
    };
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException

    // If we don't have an even number of pairs
    if (pairs.length % 2 != 0)
    {
      log.warn("URL fragment has unmatched key/value pairs, responding with 404. Fragment: " +
        urlFragment);
      throw new AbortWithWebErrorCodeException(404);
    }

    // Loop through pairs

    ValueMap parameters = new ValueMap();
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException

        String msg = "Direct access not allowed for mounted targets";
        // the target was mounted, but we got here via another path
        // : deny the request
        log.error(msg + " [request=" + requestCycle.getRequest() + ",target=" + target +
          ",session=" + Session.get() + "]");
        throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_FORBIDDEN, msg);
      }
    }

    // (WICKET-1356) in case no target was found, return null here. RequestCycle will deal with
    // it
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException

      String msg = "Unable to find package resource [path = " + absolutePath + ", style = " +
        style + ", locale = " + locale + "]";
      log.warn(msg);
      if (RequestCycle.get() instanceof WebRequestCycle)
      {
        throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_NOT_FOUND, msg);
      }
      else
      {
        throw new AbortException();
      }
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException

        String msg = "Direct access not allowed for mounted targets";
        // the target was mounted, but we got here via another path
        // : deny the request
        log.error(msg + " [request=" + requestCycle.getRequest() + ",target=" + target +
            ",session=" + Session.get() + "]");
        throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_FORBIDDEN, msg);
      }
    }

    // (WICKET-1356) in case no target was found, return null here. RequestCycle will deal with it
    // possible letting wicket filter to pass the request down the filter chain   
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException

          String msg = "Direct access not allowed for mounted targets";
          // the target was mounted, but we got here via another path
          // : deny the request
          log.error(msg + " [request=" + requestCycle.getRequest() + ",target=" + target +
            ",session=" + Session.get() + "]");
          throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_FORBIDDEN, msg);
        }
      }
    }

    // (WICKET-1356) in case no target was found, return null here. RequestCycle will deal with
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException

      String msg = "Unable to find package resource [path = " + absolutePath + ", style = "
          + style + ", locale = " + locale + "]";
      log.warn(msg);
      if (RequestCycle.get() instanceof WebRequestCycle)
      {
        throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_NOT_FOUND, msg);
      }
      else
      {
        throw new AbortException();
      }
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException

        String msg = "Direct access not allowed for mounted targets";
        // the target was mounted, but we got here via another path
        // : deny the request
        log.error(msg + " [request=" + requestCycle.getRequest() + ",target=" + target +
          ",session=" + Session.get() + "]");
        throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_FORBIDDEN, msg);
      }
    }

    // (WICKET-1356) in case no target was found, return null here. RequestCycle will deal with
    // it
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException

      String msg = "Unable to find package resource [path = " + absolutePath + ", style = " +
        style + ", locale = " + locale + "]";
      log.warn(msg);
      if (RequestCycle.get() instanceof WebRequestCycle)
      {
        throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_NOT_FOUND, msg);
      }
      else
      {
        throw new AbortException();
      }
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.