Package com.itstherules.mediacentre.controller

Source Code of com.itstherules.mediacentre.controller.MovieController

package com.itstherules.mediacentre.controller;

import java.io.IOException;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import com.itstherules.mediacentre.Extension;
import com.itstherules.stream.model.ItemsModel;


public class MovieController extends BaseController {
  @Override
  public void list(Map<String, Object> parameters, HttpServletResponse response) throws IOException {
    ItemsModel itemsModel = new ItemsModel("movies", (String) parameters.get("directory"), Extension.flv.toString());
    parameters.put("items", itemsModel.asList());
    merge("movies/list.freemarker", parameters, response.getWriter());
  }
 
  @Override
  public void show(Map<String, Object> parameters, HttpServletResponse response) throws IOException {
    merge("movies/show.freemarker", parameters, response.getWriter());
  }
}
TOP

Related Classes of com.itstherules.mediacentre.controller.MovieController

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.