Package tv.phantombot.httpserver
Class HTTPOAuthHandler
java.lang.Object
tv.phantombot.httpserver.HTTPOAuthHandler
- All Implemented Interfaces:
HttpRequestHandler
- Author:
- gmt2001
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets theHttpAuthenticationHandlerassigned to this endpointvoidHandles the HTTP request and sends a response back to the client Only gets called if theHttpAuthenticationHandlerreturnedtrueinthashCode()register()Registers thisHttpRequestHandlerwith theHttpServerPageHandlervoidbooleanvalidateBroadcasterToken(String token)
-
Constructor Details
-
HTTPOAuthHandler
public HTTPOAuthHandler()
-
-
Method Details
-
register
Description copied from interface:HttpRequestHandlerRegisters thisHttpRequestHandlerwith theHttpServerPageHandler- Specified by:
registerin interfaceHttpRequestHandler- Returns:
-
updateAuth
public void updateAuth() -
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
-
changeBroadcasterToken
-
validateBroadcasterToken
-
hashCode
public int hashCode() -
equals
-