Updated to latest Protocol Version

This commit is contained in:
UnlegitDqrk
2026-02-22 17:26:22 +01:00
parent 5058e41ce1
commit 5642869097
16 changed files with 879 additions and 173 deletions

View File

@@ -1,10 +1,11 @@
package org.openautonomousconnection.webserver.api;
import org.openautonomousconnection.protocol.packets.v1_0_0.beta.web.WebResponsePacket;
import org.openautonomousconnection.protocol.packets.v1_0_1.beta.web.impl.resource.WebResourceResponsePacket;
/**
* Server-side Java page (PHP alternative).
* Every .java page must implement this interface.
* Server-side Java page (v1.0.1-BETA).
*
* <p>Every .java page must implement this interface.</p>
*/
public interface WebPage {
@@ -12,7 +13,8 @@ public interface WebPage {
* Handles a web request.
*
* @param ctx context (client, request, session)
* @return response packet
* @return resource response packet
* @throws Exception on unexpected failures
*/
WebResponsePacket handle(WebPageContext ctx) throws Exception;
}
WebResourceResponsePacket handle(WebPageContext ctx) throws Exception;
}