package ins.frontend; import ins.frontend.utils.WebApp; import org.openautonomousconnection.protocol.packets.v1_0_0.beta.web.WebResponsePacket; import org.openautonomousconnection.webserver.api.Route; import org.openautonomousconnection.webserver.api.WebPage; import org.openautonomousconnection.webserver.api.WebPageContext; import org.openautonomousconnection.webserver.utils.Html; import java.util.HashMap; /** * Landing page for the registrar ins.frontend. */ @Route(path = "info.html") public final class info implements WebPage { @Override public WebResponsePacket handle(WebPageContext ctx) { WebApp.init(); String html = Html.page("INS Info", """

OAC Default INS Server

The Default INS Server is the official, project-operated name service of the Open Autonomous Connection (OAC) network.

It provides a trusted reference point for resolving InfoNames and enables initial client connections to the OAC ecosystem.

This server is maintained by the OAC project and is intended as the recommended entry point for public services and new clients.

Note: Alternative or private INS servers may exist, but the default INS server represents the official and stable reference instance.

"""); return new WebResponsePacket(200, "text/html", new HashMap<>(), Html.utf8(html)); } }