package handlers.files;
import handlers.AbstractServerHandler;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import common.files.SerializableFile;
import connection.ClientConnection;
import static main.ServerMain.getFileManager;
public class DelFileHandler extends AbstractServerHandler
{
public void execute(ClientConnection connection, ObjectInputStream is,
ObjectOutputStream os) throws IOException, ClassNotFoundException
{
SerializableFile file = (SerializableFile) is.readObject();
getFileManager().removeSharedFile(file, connection.getClientId());
}
}