ported legacy functions

This commit is contained in:
2025-07-04 14:00:46 +02:00
parent e48ddfdb2c
commit 3c898f36de
32 changed files with 2642 additions and 35 deletions

View File

@@ -1,19 +1,18 @@
/* © SRSoftware 2025 */
package de.srsoftware.umbrella.core;
import com.sun.net.httpserver.HttpExchange;
import de.srsoftware.tools.Path;
import de.srsoftware.tools.PathHandler;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.List;
import static de.srsoftware.tools.MimeType.MIME_JSON;
import static de.srsoftware.tools.Optionals.nullable;
import static java.lang.System.Logger.Level.DEBUG;
import static java.lang.System.Logger.Level.WARNING;
import static java.net.HttpURLConnection.HTTP_NOT_FOUND;
import com.sun.net.httpserver.HttpExchange;
import de.srsoftware.tools.Path;
import de.srsoftware.tools.PathHandler;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.List;
public abstract class BaseHandler extends PathHandler {
private static HttpExchange addCors(HttpExchange ex){

View File

@@ -6,6 +6,7 @@ public class Paths {
public static final String ADD = "add";
public static final String CSS = "css";
public static final String COMMON_TEMPLATES = "common_templates";
public static final String JSON = "json";
public static final String LEGACY = "legacy";
public static final String LIST = "list";

View File

@@ -4,7 +4,6 @@ package de.srsoftware.umbrella.core;
import static de.srsoftware.umbrella.core.Constants.TOKEN;
import de.srsoftware.tools.SessionToken;
import java.util.UUID;
public class Token implements CharSequence{