Package com.gmt2001.httpwsserver
Interface HttpRequestHandler
- All Known Implementing Classes:
HTTPAuthenticatedHandler,HTTPNoAuthHandler,HTTPOAuthHandler,HTTPPanelAndYTHandler,HttpSetupHandler
public interface HttpRequestHandler
Represents a handler for HTTP requests
- Author:
- gmt2001
-
Method Summary
Modifier and TypeMethodDescriptionGets theHttpAuthenticationHandlerassigned to this endpointvoidHandles the HTTP request and sends a response back to the client Only gets called if theHttpAuthenticationHandlerreturnedtrueregister()Registers thisHttpRequestHandlerwith theHttpServerPageHandler
-
Method Details
-
register
HttpRequestHandler register()Registers thisHttpRequestHandlerwith theHttpServerPageHandler- Returns:
-
getAuthHandler
HttpAuthenticationHandler getAuthHandler()Gets theHttpAuthenticationHandlerassigned to this endpoint- Returns:
- An
HttpAuthenticationHandler
-
handleRequest
Handles the HTTP request and sends a response back to the client Only gets called if theHttpAuthenticationHandlerreturnedtrue- Parameters:
ctx- TheChannelHandlerContextof the sessionreq- TheFullHttpRequestcontaining the request
-