diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java index 2f81eec..ca0ce40 100644 --- a/src/main/java/module-info.java +++ b/src/main/java/module-info.java @@ -1,5 +1,6 @@ module ru.molokoin { requires transitive javafx.controls; requires transitive javafx.fxml; + requires transitive java.net.http; exports ru.molokoin; } diff --git a/src/main/java/ru/molokoin/Connection.java b/src/main/java/ru/molokoin/Connection.java index 012856a..2c832ac 100644 --- a/src/main/java/ru/molokoin/Connection.java +++ b/src/main/java/ru/molokoin/Connection.java @@ -2,6 +2,7 @@ package ru.molokoin; import java.io.IOException; import java.io.RandomAccessFile; +import java.net.http.HttpResponse; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.channels.SocketChannel; @@ -10,6 +11,7 @@ import java.nio.file.Paths; public class Connection { public SocketChannel accepted = null; + public Connection(){} public Connection(SocketChannel accepted){ this.accepted = accepted; @@ -27,6 +29,8 @@ public class Connection { buf.flip(); while(buf.hasRemaining()){ System.out.print((char)buf.get()); + //HttpResponse responseOfString; + //String s = HttpRequest.BodyPublishers::ofString("String"); //accepted.write(buf); } buf.clear(); diff --git a/target/classes/module-info.class b/target/classes/module-info.class index 9f9d6fd..b28a836 100644 Binary files a/target/classes/module-info.class and b/target/classes/module-info.class differ diff --git a/target/classes/ru/molokoin/App.class b/target/classes/ru/molokoin/App.class index b936a10..14603a5 100644 Binary files a/target/classes/ru/molokoin/App.class and b/target/classes/ru/molokoin/App.class differ diff --git a/target/classes/ru/molokoin/Connection.class b/target/classes/ru/molokoin/Connection.class index aad559e..d772a14 100644 Binary files a/target/classes/ru/molokoin/Connection.class and b/target/classes/ru/molokoin/Connection.class differ diff --git a/target/classes/ru/molokoin/ServerLauncher.class b/target/classes/ru/molokoin/ServerLauncher.class index caf317c..8ab0241 100644 Binary files a/target/classes/ru/molokoin/ServerLauncher.class and b/target/classes/ru/molokoin/ServerLauncher.class differ diff --git a/target/classes/ru/molokoin/example/ExchangeServer.class b/target/classes/ru/molokoin/example/ExchangeServer.class index b2cc2c1..d5bf04d 100644 Binary files a/target/classes/ru/molokoin/example/ExchangeServer.class and b/target/classes/ru/molokoin/example/ExchangeServer.class differ diff --git a/target/classes/ru/molokoin/example/TestServerNIO.class b/target/classes/ru/molokoin/example/TestServerNIO.class index 1979f38..4142abc 100644 Binary files a/target/classes/ru/molokoin/example/TestServerNIO.class and b/target/classes/ru/molokoin/example/TestServerNIO.class differ diff --git a/target/classes/ru/molokoin/example/UploadServer.class b/target/classes/ru/molokoin/example/UploadServer.class index 933d9e0..f55fa79 100644 Binary files a/target/classes/ru/molokoin/example/UploadServer.class and b/target/classes/ru/molokoin/example/UploadServer.class differ diff --git a/target/classes/ru/molokoin/example/servernio/IServerAdminFace.class b/target/classes/ru/molokoin/example/servernio/IServerAdminFace.class index 55a5086..5051c14 100644 Binary files a/target/classes/ru/molokoin/example/servernio/IServerAdminFace.class and b/target/classes/ru/molokoin/example/servernio/IServerAdminFace.class differ diff --git a/target/classes/ru/molokoin/example/servernio/IServerUserFace.class b/target/classes/ru/molokoin/example/servernio/IServerUserFace.class index fd076d8..747c4df 100644 Binary files a/target/classes/ru/molokoin/example/servernio/IServerUserFace.class and b/target/classes/ru/molokoin/example/servernio/IServerUserFace.class differ diff --git a/target/classes/ru/molokoin/example/servernio/Server.class b/target/classes/ru/molokoin/example/servernio/Server.class index 6ab7440..933830d 100644 Binary files a/target/classes/ru/molokoin/example/servernio/Server.class and b/target/classes/ru/molokoin/example/servernio/Server.class differ diff --git a/target/classes/ru/molokoin/example/testFileSystem.class b/target/classes/ru/molokoin/example/testFileSystem.class index 4a753f0..36ebb49 100644 Binary files a/target/classes/ru/molokoin/example/testFileSystem.class and b/target/classes/ru/molokoin/example/testFileSystem.class differ