Package io.sockit.gameserver
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 Summary
Modifier and Type Method Description 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.
-
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 requestrequestHeaders
- - the http request headers which are part of the http requestwebPath
- - the web path of the web request- Returns:
- WebResource - the Web Resource for a specified web uri
-