Промежуточный комит.
Ужас как устал сегодня, узнал что и запросы у меня постоянно закрывают сессию. Надо переделать
This commit is contained in:
AidarKC
2026-01-23 21:52:45 +03:00
parent e84c63c3d1
commit 4430615117
7 changed files with 217 additions and 275 deletions
@@ -1,30 +0,0 @@
//package server.logic.ws_protocol.JSON.handlers.auth;
//
//import server.logic.ws_protocol.JSON.ConnectionContext;
//import server.logic.ws_protocol.JSON.entyties.Net_Request;
//import server.logic.ws_protocol.JSON.entyties.Net_Response;
//import server.logic.ws_protocol.JSON.handlers.JsonMessageHandler;
//import server.logic.ws_protocol.JSON.handlers.auth.entyties.Net_RefreshSession_Request;
//import server.logic.ws_protocol.JSON.utils.NetExceptionResponseFactory;
//import server.logic.ws_protocol.WireCodes;
//
///**
// * RefreshSession (v2) — ОТКЛЮЧЕН.
// *
// * Раньше это был "короткий вход" (1 запрос) по sessionId+sessionPwd.
// * Теперь вход всегда 2 шага: SessionChallenge -> SessionLogin (подпись sessionKey).
// */
//public class Net_RefreshSession_Handler implements JsonMessageHandler {
//
// @Override
// public Net_Response handle(Net_Request request, ConnectionContext ctx) throws Exception {
// Net_RefreshSession_Request req = (Net_RefreshSession_Request) request;
//
// return NetExceptionResponseFactory.error(
// req,
// WireCodes.Status.GONE, // 410
// "DISABLED_V2",
// "RefreshSession отключён в v2. Используй SessionChallenge + SessionLogin."
// );
// }
//}
@@ -1,36 +0,0 @@
//package server.logic.ws_protocol.JSON.handlers.auth.entyties;
//
//import server.logic.ws_protocol.JSON.entyties.Net_Request;
//
///**
// * Запрос RefreshSession.
// *
// * В новой версии (v2) RefreshSession ОТКЛЮЧЕН.
// * Оставлен временно для совместимости, handler вернёт 410 GONE.
// */
//public class Net_RefreshSession_Request extends Net_Request {
//
// private String sessionId;
// private String sessionPwd;
// private String clientInfo;
//
// public String getSessionId() {
// return sessionId;
// }
//
// public void setSessionId(String sessionId) {
// this.sessionId = sessionId;
// }
//
// public String getSessionPwd() {
// return sessionPwd;
// }
//
// public void setSessionPwd(String sessionPwd) {
// this.sessionPwd = sessionPwd;
// }
//
// public String getClientInfo() { return clientInfo; }
//
// public void setClientInfo(String clientInfo) { this.clientInfo = clientInfo; }
//}
@@ -1,23 +0,0 @@
//package server.logic.ws_protocol.JSON.handlers.auth.entyties;
//
//import server.logic.ws_protocol.JSON.entyties.Net_Response;
//
///**
// * Ответ на RefreshSession.
// *
// * В новой версии (v2) RefreshSession ОТКЛЮЧЕН.
// * Этот класс можно оставить временно для совместимости сериализации,
// * но handler будет возвращать 410 GONE.
// */
//public class Net_RefreshSession_Response extends Net_Response {
//
// private String storagePwd;
//
// public String getStoragePwd() {
// return storagePwd;
// }
//
// public void setStoragePwd(String storagePwd) {
// this.storagePwd = storagePwd;
// }
//}