Skip to content

it's a small try to build a core of framework on java .it does the basic things of frame work ,Like send requests ,receive Response ,Handshake, encrypt data , generate and validate token ( more details in README.md) .for try it ,I built RDP and FTP on it.

Notifications You must be signed in to change notification settings

22Bassel/small-java-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

small-java-framework

java

About : it's a small try to build a core of framework on java .The architecture is 3 tiers, the first tier is client with its GUI , the second is the business logic tier (server) and the third tier is storage (DB). server and client are built using MVC .view is to receive request and understand it ,controller is to do the services and model to access to storage. In controller, there is Service class you can 'extend' it and code your services in children , if you want to connect to other clients you can use sender class ,it will send Request class and receive Response class.(for test I code Remote Desktop Software , Ftp ,sign up ,login and others ).Also there is a package called Aspects here you can use AOP (for test, I code encryption in it ),the last package do its work on facade class (which use facade design pattern).Listener package is to receive Request class then understand it using transforms package and make Message class that facade and services can deal with.for a new table in DB, you can extends Main_DAO .and define the name and the variables ,also there are a function called make_query , you enter your name of query and get the DB query.another thing is Keys package, it is work with keys (asym : RSA ,sym : AES) and encrypt data with it. the Loadbalancer app ,it's a simple loadbalancer after run servers in different ports ,you can define ports in ports variable, then make clients access to the loadbalancer and it will send the requests to server using Round Robin alg.

you will need some external jars : 1- charm-glisten-4.3.7 . 2- commons-io-2.6.0 . 3- commons-net-3.8.0 . 4- ftplet-api-1.2.0 . 5- ftpserver-core-1.2.0 . 6- jcip-annotations-1.0-1 . 7- json-20211205 . 8- mina-core-2.1.6 . 9- mysql-connector . 10- nimbus-jose-jwt-9.21 . 11- slf4j-api-1.7.36 . 12- slf4j-simple-1.6.1 .

for RDP , in DB you have to create a DB called "rds",and the tables : 1- publickeys : "id" int(11) , "UID" varchar(128) , "TheKey" varchar(1024) , . 2- users : "ID" int(11) ,
"UserID" varchar(50) , "Name" varchar(50) , "Password" varchar(50) , "Email" varchar(50) , "BirthDate" date , "Gender" tinyint(1) , "IP" varchar(50) , "RecievePort" varchar(50) , "CreateDate" datetime , . 3- channels : "ID" int(11) , "FirstUserID" int(11) , "SecondUserID" int(11) , "TimeStart" datetime , "TimeEnd" datetime , .

About

it's a small try to build a core of framework on java .it does the basic things of frame work ,Like send requests ,receive Response ,Handshake, encrypt data , generate and validate token ( more details in README.md) .for try it ,I built RDP and FTP on it.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages