@@ -0,0 +1,2008 @@
+package mll.servlets;%0A%0Aimport java.io.IOException;%0Aimport java.io.PrintWriter;%0A%0Aimport javax.servlet.ServletConfig;%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0Aimport javax.servlet.http.HttpSession;%0A%0Aimport org.apache.http.ParseException;%0Aimport org.json.JSONArray;%0Aimport org.json.JSONException;%0A%0Aimport mll.service.RazunaService;%0A%0A/**%0A * Servlet implementation class DeleteAsset%0A */%0Apublic class DeleteAssetServlet extends HttpServlet %7B%0A%09private static final long serialVersionUID = 1L;%0A%09private RazunaService razunaservice;%0A       %0A    /**%0A     * @see HttpServlet#HttpServlet()%0A     */%0A    public DeleteAssetServlet() %7B%0A        super();%0A        // TODO Auto-generated constructor stub%0A    %7D%0A    %0A    public void init(ServletConfig config) throws ServletException %0A%09%7B%0A%09%09%0A%09%09razunaservice=new RazunaService();%0A%09%7D%0A%0A%09/**%0A%09 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)%0A%09 */%0A%09protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09HttpSession session=request.getSession();%0A%09    String assetId = new String();%0A%09    JSONArray songs=new JSONArray();%0A%09    if(session.getAttribute(%22folder_id%22)!=null)%0A%09    %7B%0A%09    %09assetId = request.getParameter(%22assetId%22);%09%0A%09    %7D%0A%09    try %7B%0A%09%09%09razunaservice.deleteAsset(assetId);%0A%09%09%09%0A%09%09%7D catch (ParseException %7C JSONException e) %7B%0A%09%09%09// TODO Auto-generated catch block%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09    response.setContentType(%22application/json%22);%0A%09%09PrintWriter out = response.getWriter();%0A%09%09out.print(songs);%0A%09%09out.flush();%0A%09%7D%0A%0A%09/**%0A%09 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)%0A%09 */%0A%09protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09doGet(request, response);%0A%09%7D%0A%0A%7D%0A

Delete asset servlet