Package handlers.files

Source Code of handlers.files.DelFileHandler

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());
  }

}
TOP

Related Classes of handlers.files.DelFileHandler

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.