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);
      }
    }

    if (target == null)
    {
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
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.