Package com.firefly.mvc.web.view

Examples of com.firefly.mvc.web.view.StaticFileView


public class AddInterceptor {
  public View dispose(HttpServletRequest request, HttpServletResponse response, HandlerChain chain) {
    HttpSession session = request.getSession();
    String name = (String)session.getAttribute("name");
    if(name == null) {
      return new StaticFileView("/index.html");
    }
   
    return chain.doNext(request, response, chain);
  }
View Full Code Here


   
    chain.add(new WebHandler(){
     
      @Override
      public View invoke(HttpServletRequest request, HttpServletResponse response) {
        return new StaticFileView(path);
      }
     
    });
  }
View Full Code Here

TOP

Related Classes of com.firefly.mvc.web.view.StaticFileView

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.