Examples of sendError()


Examples of org.apache.tapestry5.services.Response.sendError()

        train_toResourcePath(aliasManager, clientURL, resourcePath);

        train_requiresDigest(cache, new ClasspathResource(resourcePath), true);

        response.sendError(eq(HttpServletResponse.SC_FORBIDDEN), contains(resourcePath));

        replay();

        Dispatcher d = new AssetDispatcher(streamer, aliasManager, cache, "1.2.3", null);
View Full Code Here

Examples of org.apache.wicket.request.http.WebResponse.sendError()

        return;
      }

      if (data.getErrorCode() != null)
      {
        webResponse.sendError(data.getErrorCode(), data.getErrorMessage());
        return;
      }

      String fileName = data.getFileName();
      ContentDisposition disposition = data.getContentDisposition();
View Full Code Here

Examples of org.atmosphere.cpr.AtmosphereResponse.sendError()

            } else {
                if (!isDisconnectRequest) {
                    // handle the Connect
                    session = connect(session, resource, atmosphereHandler, sessionFactory);
                    if (session == null) {
                        response.sendError(AtmosphereResponse.SC_SERVICE_UNAVAILABLE);
                    }
                } else {
                    response.setStatus(200);
                }
            }
View Full Code Here

Examples of org.eclipse.jetty.websocket.servlet.ServletUpgradeResponse.sendError()

            }

            if (websocketPojo == null)
            {
                // no creation, sorry
                sockresp.sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE, "Endpoint Creation Failed");
                return false;
            }

            // Get the original HTTPConnection
            HttpConnection connection = (HttpConnection)request.getAttribute("org.eclipse.jetty.server.HttpConnection");
View Full Code Here

Examples of org.eclipse.jgit.transport.ReceivePack.sendError()

    gs.setReceivePackFactory(new DefaultReceivePackFactory() {
      public ReceivePack create(HttpServletRequest req, Repository db)
          throws ServiceNotEnabledException,
          ServiceNotAuthorizedException {
        ReceivePack rp = super.create(req, db);
        rp.sendError("message line 1");
        rp.sendError("no soup for you!");
        rp.sendError("come back next year!");
        return rp;
      }
View Full Code Here

Examples of org.exoplatform.portal.application.PortalRequestContext.sendError()

        if (pcontext.isResponseComplete()) {
            return;
        }

        if (currentSite == null || currentSite.getSelectedUserNode() == null) {
            pcontext.sendError(HttpServletResponse.SC_NOT_FOUND);
        }

        super.processAction(pcontext);
    }
View Full Code Here

Examples of org.jboss.seam.mock.EnhancedMockHttpServletResponse.sendError()

      {
         public void getResource(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
         {
            if (!sendConditional(request, response, "\"5678\"", null))
            {
               response.sendError(HttpServletResponse.SC_OK);
            }
         }

         public String getResourcePath()
         {
View Full Code Here

Examples of org.jboss.seam.mock.EnhancedMockHttpServletResponse.sendError()

      {
         public void getResource(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
         {
            if (!sendConditional(request, response, "\"5678\"", null))
            {
               response.sendError(HttpServletResponse.SC_OK);
            }
         }

         public String getResourcePath()
         {
View Full Code Here

Examples of org.jboss.seam.mock.EnhancedMockHttpServletResponse.sendError()

      {
         public void getResource(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
         {
            if (!sendConditional(request, response, null, currentTime))
            {
               response.sendError(HttpServletResponse.SC_OK);
            }
         }

         public String getResourcePath()
         {
View Full Code Here

Examples of org.jboss.seam.mock.EnhancedMockHttpServletResponse.sendError()

      {
         public void getResource(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
         {
            if (!sendConditional(request, response, null, currentTime + 5000))
            {
               response.sendError(HttpServletResponse.SC_OK);
            }
         }

         public String getResourcePath()
         {
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.