package com.decker.Essentials;

import javax.servlet.http.HttpServletRequest;

import com.decker.Essentials.Category.Category;
import com.decker.Essentials.User.User;

public class Command
{
    public static byte [] Execute(User sender,HttpServletRequest request)
    {
	switch (request.getRequestURI().substring(request.getRequestURI().lastIndexOf('/')))
	{
	case "/Sidebar.exec":return Category.getInstance().getJsonCategory(sender.Type).getBytes();
	    
	    	

	default:
	    break;
	}
	
	return null;
    }
}

@@ -73,16 +73,64 @@
 equest;%0D
+%0Aimport javax.servlet.http.HttpServletResponse;%0D
 %0A%0D%0Aimpor
@@ -313,16 +313,45 @@
  request
+,HttpServletResponse response
 )%0D%0A    %7B

Add argument response