Package tv.phantombot.httpserver
Class HTTPNoAuthHandler
java.lang.Object
tv.phantombot.httpserver.HTTPNoAuthHandler
- All Implemented Interfaces:
HttpRequestHandler
- Author:
- gmt2001
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
HTTPNoAuthHandler
public HTTPNoAuthHandler()
-
-
Method Details
-
register
Description copied from interface:HttpRequestHandlerRegisters thisHttpRequestHandlerwith theHttpServerPageHandler- Specified by:
registerin interfaceHttpRequestHandler- Returns:
-
getAuthHandler
Description copied from interface:HttpRequestHandlerGets theHttpAuthenticationHandlerassigned to this endpoint- Specified by:
getAuthHandlerin interfaceHttpRequestHandler- Returns:
- An
HttpAuthenticationHandler
-
handleRequest
Description copied from interface:HttpRequestHandlerHandles the HTTP request and sends a response back to the client Only gets called if theHttpAuthenticationHandlerreturnedtrue- Specified by:
handleRequestin interfaceHttpRequestHandler- Parameters:
ctx- TheChannelHandlerContextof the sessionreq- TheFullHttpRequestcontaining the request
-