ru.tinkoff.kora.http.server.undertow.UndertowContext Maven / Gradle / Ivy
package ru.tinkoff.kora.http.server.undertow;
import io.undertow.server.HttpServerExchange;
import ru.tinkoff.kora.common.Context;
import jakarta.annotation.Nullable;
public class UndertowContext {
private static final Context.Key KEY = new Context.Key<>() {
@Override
protected HttpServerExchange copy(HttpServerExchange object) {
return null;
}
};
public static void set(Context ctx, HttpServerExchange exchange) {
ctx.set(KEY, exchange);
}
public static void clear(Context ctx) {
ctx.remove(KEY);
}
@Nullable
public static HttpServerExchange get(Context ctx) {
return ctx.get(KEY);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy