From 2f202812c8af7781bd9c5b3c1777a83e521ab51e Mon Sep 17 00:00:00 2001 From: Louis Date: Thu, 12 Dec 2019 11:57:02 +0100 Subject: [PATCH] Class stub --- src/client/Client.java | 10 ++++++++++ src/client/ClientManagement.java | 17 +++++++++++++++++ src/exception/NotFound.java | 2 ++ src/server/Server.java | 12 ++++++++++++ src/server/ServerManagement.java | 22 ++++++++++++++++++++++ 5 files changed, 63 insertions(+) create mode 100644 src/client/Client.java create mode 100644 src/client/ClientManagement.java create mode 100644 src/exception/NotFound.java create mode 100644 src/server/Server.java create mode 100644 src/server/ServerManagement.java diff --git a/src/client/Client.java b/src/client/Client.java new file mode 100644 index 0000000..3005e2a --- /dev/null +++ b/src/client/Client.java @@ -0,0 +1,10 @@ +package client; + +public class Client { + public Client() { + + } + public static void main(String [] args) { + Client c = new Client("client"); + } +} diff --git a/src/client/ClientManagement.java b/src/client/ClientManagement.java new file mode 100644 index 0000000..967d31a --- /dev/null +++ b/src/client/ClientManagement.java @@ -0,0 +1,17 @@ +package client; +import exception.NotFound; + +public class ClientManagment { + private String baseDirectory; + public ClientManagment(String baseDirectory) { + this.baseDirectory = baseDirectory; + } + + public void download(String filename) throws NotFound { + } + + public String listDirectory() { + + } + +} diff --git a/src/exception/NotFound.java b/src/exception/NotFound.java new file mode 100644 index 0000000..172a0bc --- /dev/null +++ b/src/exception/NotFound.java @@ -0,0 +1,2 @@ +package exception; +public class NotFound extends Exception {} diff --git a/src/server/Server.java b/src/server/Server.java new file mode 100644 index 0000000..e3b1757 --- /dev/null +++ b/src/server/Server.java @@ -0,0 +1,12 @@ +package Server; + +public class Server { + + public Server() { + + } + public static void main(String [] args) { + Server s = new Server("server"); + } + +} diff --git a/src/server/ServerManagement.java b/src/server/ServerManagement.java new file mode 100644 index 0000000..dd09361 --- /dev/null +++ b/src/server/ServerManagement.java @@ -0,0 +1,22 @@ +package server; +import exception.NotFound; +import java.util.Vector; + +public class ServerManagement { + + private Vector fileList; + private String baseDirectory; + + public ServerManagement(String baseDirectory) { + this.baseDirectory = baseDirectory; + fileList = new Vector; + initFileList(); + } + + public void upload(String filename) throws NotFound { + } + + public String listDirectory() { + + } +}