Package com.firefly.mvc.web

Examples of com.firefly.mvc.web.WebHandler


    StaticFileView.init(serverConfig, getViewPath());
  }
 
  @Override
  protected void addLastHandler(String uri, String servletURI, final HandlerChainImpl chain) {
    WebHandler last = null;
    if(servletURI != null)
      last = resource.match(servletURI);
   
    if(last != null) {
      chain.add(last);
      return;
    }
   
    final String path = uri.equals("/") ? "/index.html" : uri;
    File file = new File(serverConfig.getServerHome(), path);
    if (!file.exists() || file.isDirectory())
      return;
   
    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.WebHandler

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.