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 Type
    Method
    Description
    void
    http(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, wait

    Methods 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:
      http in interface dev.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:
      ws in interface dev.latvian.apps.tinyserver.ServerRegistry<KJSHTTPRequest>