Package com.caucho.server.dispatch

Examples of com.caucho.server.dispatch.ErrorFilterChain


    String lower = uri.toLowerCase();

    if (lower.startsWith("/web-inf")
  || lower.startsWith("/meta-inf")) {
      return new ErrorFilterChain(HttpServletResponse.SC_NOT_FOUND);
    }

    ArrayList<AbstractConstraint> constraints;
    constraints = new ArrayList<AbstractConstraint>();
   
View Full Code Here


      return _hostContainer.buildInvocation(invocation);
    }
    else {
      int code = HttpServletResponse.SC_SERVICE_UNAVAILABLE;

      invocation.setFilterChain(new ErrorFilterChain(code));
      invocation.setWebApp(getErrorWebApp());
      invocation.setDependency(AlwaysModified.create());

      return invocation;
    }
View Full Code Here

  public FilterChain dispatch(String uri,
            String queryString,
                              FilterChain accept,
                              FilterChainMapper next)
  {
    return new ErrorFilterChain(_code);
  }
View Full Code Here

    if (host != null) {
      invocation = host.buildInvocation(invocation);
      isAlwaysModified = false;
    }
    else {
      FilterChain chain = new ErrorFilterChain(404);
      invocation.setFilterChain(chain);
      invocation.setWebApp(getErrorWebApp());
      isAlwaysModified = true;
    }
View Full Code Here

      return invocation;
    }
    else if (! _lifecycle.waitForActive(_startWaitTime)) {
      int code = HttpServletResponse.SC_SERVICE_UNAVAILABLE;
      FilterChain chain = new ErrorFilterChain(code);
      invocation.setFilterChain(chain);

      if (_dispatchServer instanceof Server) {
        Server server = (Server) _dispatchServer;
        invocation.setWebApp(getErrorWebApp());
      }

      invocation.setDependency(AlwaysModified.create());

      return invocation ;
    }

    FilterChain chain;

    WebApp app = getWebApp(invocation, true);

    boolean isAlwaysModified;

    if (app != null) {
      invocation = app.buildInvocation(invocation);
      chain = invocation.getFilterChain();
      isAlwaysModified = false;
    }
    else {
      int code = HttpServletResponse.SC_NOT_FOUND;
      chain = new ErrorFilterChain(code);
      ContextFilterChain contextChain = new ContextFilterChain(chain);
      contextChain.setErrorPageManager(_errorPageManager);
      chain = contextChain;
      invocation.setFilterChain(contextChain);
      isAlwaysModified = true;
View Full Code Here

TOP

Related Classes of com.caucho.server.dispatch.ErrorFilterChain

Copyright © 2018 www.massapicom. 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.