Package dev.latvian.mods.kubejs.web
Class LocalWebServerRegistry
java.lang.Object
dev.latvian.mods.kubejs.web.LocalWebServerRegistry
- All Implemented Interfaces:
dev.latvian.apps.tinyserver.ServerRegistry<KJSHTTPRequest>
public class LocalWebServerRegistry
extends Object
implements dev.latvian.apps.tinyserver.ServerRegistry<KJSHTTPRequest>
-
Method Summary
Modifier and TypeMethodDescriptionvoidhttp(dev.latvian.apps.tinyserver.http.HTTPMethod method, String path, dev.latvian.apps.tinyserver.http.HTTPHandler<KJSHTTPRequest> handler) <WSS extends dev.latvian.apps.tinyserver.ws.WSSession<KJSHTTPRequest>>
dev.latvian.apps.tinyserver.ws.WSHandler<KJSHTTPRequest, WSS> ws(String path, dev.latvian.apps.tinyserver.ws.WSSessionFactory<KJSHTTPRequest, WSS> factory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.latvian.apps.tinyserver.ServerRegistry
acceptPostString, acceptPostTask, delete, dynamicFiles, get, patch, post, put, redirect, singleFile, staticFiles, ws
-
Method Details
-
http
public void http(dev.latvian.apps.tinyserver.http.HTTPMethod method, String path, dev.latvian.apps.tinyserver.http.HTTPHandler<KJSHTTPRequest> handler) - Specified by:
httpin interfacedev.latvian.apps.tinyserver.ServerRegistry<KJSHTTPRequest>
-
ws
public <WSS extends dev.latvian.apps.tinyserver.ws.WSSession<KJSHTTPRequest>> dev.latvian.apps.tinyserver.ws.WSHandler<KJSHTTPRequest,WSS> ws(String path, dev.latvian.apps.tinyserver.ws.WSSessionFactory<KJSHTTPRequest, WSS> factory) - Specified by:
wsin interfacedev.latvian.apps.tinyserver.ServerRegistry<KJSHTTPRequest>
-