Examples of sendError()


Examples of cn.org.ape.http.HttpResponse.sendError()

   String action= request.getAction()//取得调方法
   BaseAction baseAction = modules.get(module); //初始调用类
   if (baseAction==null)
   {
     //没有找到Module 返回404
    response.sendError(HttpResponse.SC_NOT_FOUND);//返回404
    return ;
   }
    
   //通过asm 把request的属性赋值到调用类中属性中
    ClassParsing cp = new ClassParsing();
View Full Code Here

Examples of cn.org.ape.http.ResponseContext.sendError()

   String action= request.getAction()//取得调方法
   BaseAction baseAction = modules.get(module); //初始调用类
   if (baseAction==null)
   {
     //没有找到Module 返回404
    response.sendError(HttpResponse.SC_NOT_FOUND);//返回404
    return ;
   }
    
   //通过asm 把request的属性赋值到调用类中属性中
    ClassParsing cp = new ClassParsing();
View Full Code Here

Examples of com.caucho.server.http.CauchoResponse.sendError()

    if (result.isFail()) {
      if (! result.isResponseSent()
          && ! res.isCommitted()
          && res.getStatus() / 100 == 2) {
        res.sendError(HttpServletResponse.SC_FORBIDDEN);
      }

      return;
    }
View Full Code Here

Examples of com.caucho.server.http.HttpServletResponseImpl.sendError()

  private boolean sendBusyResponse()
    throws IOException
  {
    HttpServletResponseImpl response = getResponseFacade();

    response.sendError(503);

    return true;
  }

  /**
 
View Full Code Here

Examples of com.caucho.server.http.HttpServletResponseImpl.sendError()

    String upgrade = req.getHeader("Upgrade");

    if (! "WebSocket".equals(upgrade)) {
      // eventually can use alt method
      res.sendError(400, "Upgrade denied:" + upgrade);
      return;
    }
   
    String ipAddress = req.getRemoteAddr();
   
View Full Code Here

Examples of com.caucho.server.webapp.ErrorPageManager.sendError()

        _response.finishInvocation();
        return;
      }
      else if (errorManager != null) {
        // server/10su
        errorManager.sendError(_request, this, code, _statusMessage);

        // _request.killKeepalive();
        // close, but don't force a flush
        // XXX: finish(false);
        _response.finishInvocation();
View Full Code Here

Examples of com.dotmarketing.cmis.proxy.DotResponseProxy.sendError()

          Logger.debug(HTMLPageAPIImpl.class, "401 URI = " + uri);

          Logger.debug(HTMLPageAPIImpl.class, "Unauthorized URI = "
              + uri);
          responseProxy.sendError(401,
              "The requested page/file is unauthorized");
          return "An SYSTEM ERROR OCCURED !";

        } else if (!permissionAPI.getReadRoles(ident).contains(
            APILocator.getRoleAPI().loadLoggedinSiteRole())) {
View Full Code Here

Examples of com.ericsson.ssa.sip.SipServletResponseImpl.sendError()

    private void sendResponse(SipServletRequestImpl request,
        int code) {
        SipServletResponseImpl response =
            request.createTerminatingResponse(code);
        response.sendError(); // fix for 1816 -- call sendError() instead of doing direct pop dispatch.
    }
   
    private void sendARFailed(SipServletRequestImpl request) {
        //sendResponse(request, SipServletResponseImpl.SC_SERVER_INTERNAL_ERROR,
        //"Application Router error");
View Full Code Here

Examples of dk.brics.jwig.WebSite.sendError()

                String error_url = (String) request.getAttribute("javax.servlet.error.request_uri");
                log.info("Status code " + status_code);
                ThreadContext.set(new ThreadContext(request, response, error_url));
                switch (status_code) { // TODO: need to cover more status codes? (should match web.xml)
                    case HttpServletResponse.SC_NOT_FOUND:
                        website.sendError(status_code, "The requested resource is not found: " + error_url);
                        ThreadContext.get().getResponse().write(request, response);
                        break;
                    case HttpServletResponse.SC_FORBIDDEN:
                        website.sendError(status_code, "Access to the requested resource is forbidden: " + error_url);
                        ThreadContext.get().getResponse().write(request, response);
View Full Code Here

Examples of io.socket.http.HttpResponse.sendError()

        HttpRequest req = context.getRequest();
        HttpResponse resp = context.getResponse();

        Iterator<String> parts = Splitter.on('/').omitEmptyStrings().split(Strings.nullToEmpty(req.getPathInfo())).iterator();
        if (!parts.hasNext()) {
            resp.sendError(400, String.format("Protocol version required (supports v%d)", PROTOCOL_VERSION));
            return;
        }

        int protocolVersion;
        try {
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.