From b5fc70ba999c8ff7b30c21a45ab2d763014e75b3 Mon Sep 17 00:00:00 2001 From: esoe Date: Wed, 12 Oct 2022 15:26:35 +0300 Subject: [PATCH] qq --- src/main/java/ru/molokoin/Connection.java | 3 +- src/main/java/ru/molokoin/RequestMessage.java | 27 ++++++++++++++++++ target/classes/ru/molokoin/Connection.class | Bin 2541 -> 2565 bytes .../classes/ru/molokoin/RequestMessage.class | Bin 0 -> 580 bytes 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 src/main/java/ru/molokoin/RequestMessage.java create mode 100644 target/classes/ru/molokoin/RequestMessage.class diff --git a/src/main/java/ru/molokoin/Connection.java b/src/main/java/ru/molokoin/Connection.java index f0b7e66..cb1e82a 100644 --- a/src/main/java/ru/molokoin/Connection.java +++ b/src/main/java/ru/molokoin/Connection.java @@ -37,7 +37,8 @@ public class Connection { System.out.println("Read " + bytesRead); buf.flip(); while(buf.hasRemaining()){ - System.out.print((char)buf.get()); + char c = (char)buf.get(); + System.out.print(c); //HttpResponse responseOfString; //String s = HttpRequest.BodyPublishers::ofString("String"); //accepted.write(buf); diff --git a/src/main/java/ru/molokoin/RequestMessage.java b/src/main/java/ru/molokoin/RequestMessage.java new file mode 100644 index 0000000..db5f5d9 --- /dev/null +++ b/src/main/java/ru/molokoin/RequestMessage.java @@ -0,0 +1,27 @@ +package ru.molokoin; + +/** + * Запрос пользователя + * get/post текстовый запрос, структурированный в объект для обработки + */ +public class RequestMessage { + private String text; + + RequestMessage(String msg){ + setText(msg); + } + /** + * @param text the text to set + */ + public void setText(String text) { + this.text = text; + } + /** + * @return the text + */ + public String getText() { + return text; + } + + +} diff --git a/target/classes/ru/molokoin/Connection.class b/target/classes/ru/molokoin/Connection.class index a2f91917058684dd3f8b0a5e30b67922691467fe..93f72d382424db385317c057426df8b4edb58fdc 100644 GIT binary patch delta 815 zcmZXRTTc^F6otR(ZAzJF0f~YT%0&zuXrw}i!gwlBXvZUJR1t=K*o&HV~W zt-fh2RQmL7qoeGS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l=td|Mt(8i2wiq diff --git a/target/classes/ru/molokoin/RequestMessage.class b/target/classes/ru/molokoin/RequestMessage.class new file mode 100644 index 0000000000000000000000000000000000000000..a581ccef6c50b45fea41bd5ffe57aec9cec92cd9 GIT binary patch literal 580 zcmZ`#%TB^T6g|_H7E0v}D!OsUBe6>t8a5`ZP!l2S3r^}_X=5M8&(g$4;=&K`ql|Y- z6%8@X^gia?bI#n4&$o8~N7yr`>b43&j*=h&X( zyY|Iw!RIl97V~=wwbA-&9EZYpj~Vn6;fr{{(Clnpcc(Ob8eDM`DvA~iSPW{XJ2k;j zvQS2z!H9S~Nd?Ly;q&ukIpg8PnR#4F26M-oI-!tt*3{x_5i#tK{(lJ>QQ@LkopQmv-e7; z|AMVYsuWb{UrMniG!zMIp-R2h3XK}-RM8w7#LDQS#blg=j8pIRpV3_NndxkmeAIq% q=|5b0>QHiRV<+RXDKgT@^`6jtpk!rDN`he0lC=V4Gz_~bs{IAbJ!VY+ literal 0 HcmV?d00001