Package com.din.din.webapp.beans

Examples of com.din.din.webapp.beans.ProjectBean


  public void doFilter(ServletRequest request, ServletResponse response,
      FilterChain chain) throws IOException, ServletException {

    HttpServletRequest httpRequest = (HttpServletRequest)request;
    ProjectBean bean = (ProjectBean) httpRequest.getSession().getAttribute("projectBean");
   
    String uri = httpRequest.getRequestURI();
    if(uri.indexOf("/auth/start.jsf") >= 0 && bean != null && bean.isProjectConfigured()) {
      // Project is configured and we're loading start -> perform redirect to build
      HttpServletResponse httpResponse = (HttpServletResponse)response;
      httpResponse.sendRedirect(httpRequest.getContextPath() + "/auth/build.jsf");   
//    } else if (uri.indexOf("/auth/start.jsf") < 0 && uri.indexOf("/auth/") >= 0 && (bean == null || !bean.isProjectConfigured())) {
//      // Project is *not* configured and we're visiting a page which is not start -> perform redirect to start
View Full Code Here

TOP

Related Classes of com.din.din.webapp.beans.ProjectBean

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.