Updated to latest Protocol Version
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user