Interface WebHandler

All Known Implementing Classes:
DefaultWebHandler

public interface WebHandler
This interface allows you to implement your own web handler to handle web Requests on the server. A web handler can be registered on the Server by calling Server.setWebHandler() method.
  • Method Details

    • getWebResource

      WebResource getWebResource​(SocketAddress remoteAddress, Iterable<Map.Entry<String,​String>> requestHeaders, String webPath)
      Returns the Web Resource for a specified web path.The web path is the path following the domain name in a web url.
      Parameters:
      remoteAddress - - the socket address of the http client which made the request
      requestHeaders - - the http request headers which are part of the http request
      webPath - - the web path of the web request
      Returns:
      WebResource - the Web Resource for a specified web uri