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 theHttpAuthenticationHandler
assigned to this endpointvoid
Handles the HTTP request and sends a response back to the client Only gets called if theHttpAuthenticationHandler
returnedtrue
register()
Registers thisHttpRequestHandler
with theHttpServerPageHandler
-
Method Details
-
register
HttpRequestHandler register()Registers thisHttpRequestHandler
with theHttpServerPageHandler
- Returns:
-
getAuthHandler
HttpAuthenticationHandler getAuthHandler()Gets theHttpAuthenticationHandler
assigned to this endpoint- Returns:
- An
HttpAuthenticationHandler
-
handleRequest
Handles the HTTP request and sends a response back to the client Only gets called if theHttpAuthenticationHandler
returnedtrue
- Parameters:
ctx
- TheChannelHandlerContext
of the sessionreq
- TheFullHttpRequest
containing the request
-