package org.openautonomousconnection.webserver.api; import org.openautonomousconnection.protocol.packets.v1_0_0.beta.WebResponsePacket; /** * Server-side Java page (PHP alternative). * Every .java page must implement this interface. */ public interface WebPage { /** * Handles a web request. * * @param ctx context (client, request, session) * @return response packet */ WebResponsePacket handle(WebPageContext ctx) throws Exception; }