Class AnonymousControllerImpl
java.lang.Object
org.eblocker.server.http.server.SessionContextController
org.eblocker.server.http.controller.impl.AnonymousControllerImpl
- All Implemented Interfaces:
AnonymousController
public class AnonymousControllerImpl
extends SessionContextController
implements AnonymousController
Provides access to anonymous configuration
-
Constructor Summary
ConstructorsConstructorDescriptionAnonymousControllerImpl(SessionStore sessionStore, PageContextStore pageContextStore, DeviceService deviceService, TorController torControl, TorCheckService torCheckService, FeatureServicePublisher featureService, AnonymousService anonymousService) -
Method Summary
Modifier and TypeMethodDescriptiongetConfig(org.restexpress.Request request, org.restexpress.Response response) getConfigById(org.restexpress.Request request, org.restexpress.Response response) getCurrentTorExitNodeCountries(org.restexpress.Request req, org.restexpress.Response resp) booleangetDntHeaderState(org.restexpress.Request request, org.restexpress.Response response) booleangetGoogleCaptivePortalRedirectState(org.restexpress.Request req, org.restexpress.Response resp) voidgetNewTorIdentity(org.restexpress.Request req, org.restexpress.Response resp) getTorCheckServices(org.restexpress.Request request, org.restexpress.Response response) getTorCountries(org.restexpress.Request req, org.restexpress.Response resp) booleanisHTTPRefererRemovingEnabled(org.restexpress.Request request, org.restexpress.Response response) booleanisTorConnected(org.restexpress.Request req, org.restexpress.Response resp) booleanisWebRTCBlockingEnabled(org.restexpress.Request request, org.restexpress.Response response) putConfig(org.restexpress.Request request, org.restexpress.Response response) putConfigById(org.restexpress.Request request, org.restexpress.Response response) voidsetDntHeaderState(org.restexpress.Request request, org.restexpress.Response response) voidsetGoogleCaptivePortalRedirectState(org.restexpress.Request req, org.restexpress.Response resp) voidsetHTTPRefererRemovingState(org.restexpress.Request request, org.restexpress.Response response) voidsetTorExitNodeCountries(org.restexpress.Request req, org.restexpress.Response resp) voidsetWebRTCBlockingState(org.restexpress.Request request, org.restexpress.Response response) Methods inherited from class org.eblocker.server.http.server.SessionContextController
getPageContext, getPageContext, getSession, isPageContextValid
-
Constructor Details
-
AnonymousControllerImpl
@Inject public AnonymousControllerImpl(SessionStore sessionStore, PageContextStore pageContextStore, DeviceService deviceService, TorController torControl, TorCheckService torCheckService, FeatureServicePublisher featureService, AnonymousService anonymousService)
-
-
Method Details
-
getConfig
- Specified by:
getConfigin interfaceAnonymousController
-
getConfigById
- Specified by:
getConfigByIdin interfaceAnonymousController
-
putConfig
- Specified by:
putConfigin interfaceAnonymousController
-
putConfigById
- Specified by:
putConfigByIdin interfaceAnonymousController
-
isTorConnected
public boolean isTorConnected(org.restexpress.Request req, org.restexpress.Response resp) - Specified by:
isTorConnectedin interfaceAnonymousController
-
getNewTorIdentity
public void getNewTorIdentity(org.restexpress.Request req, org.restexpress.Response resp) - Specified by:
getNewTorIdentityin interfaceAnonymousController
-
getTorCountries
- Specified by:
getTorCountriesin interfaceAnonymousController
-
setTorExitNodeCountries
public void setTorExitNodeCountries(org.restexpress.Request req, org.restexpress.Response resp) - Specified by:
setTorExitNodeCountriesin interfaceAnonymousController
-
getCurrentTorExitNodeCountries
public Object getCurrentTorExitNodeCountries(org.restexpress.Request req, org.restexpress.Response resp) - Specified by:
getCurrentTorExitNodeCountriesin interfaceAnonymousController
-
getTorCheckServices
public Object getTorCheckServices(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getTorCheckServicesin interfaceAnonymousController
-
setWebRTCBlockingState
public void setWebRTCBlockingState(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
setWebRTCBlockingStatein interfaceAnonymousController
-
isWebRTCBlockingEnabled
public boolean isWebRTCBlockingEnabled(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
isWebRTCBlockingEnabledin interfaceAnonymousController
-
setHTTPRefererRemovingState
public void setHTTPRefererRemovingState(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
setHTTPRefererRemovingStatein interfaceAnonymousController
-
isHTTPRefererRemovingEnabled
public boolean isHTTPRefererRemovingEnabled(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
isHTTPRefererRemovingEnabledin interfaceAnonymousController
-
getGoogleCaptivePortalRedirectState
public boolean getGoogleCaptivePortalRedirectState(org.restexpress.Request req, org.restexpress.Response resp) - Specified by:
getGoogleCaptivePortalRedirectStatein interfaceAnonymousController
-
setGoogleCaptivePortalRedirectState
public void setGoogleCaptivePortalRedirectState(org.restexpress.Request req, org.restexpress.Response resp) - Specified by:
setGoogleCaptivePortalRedirectStatein interfaceAnonymousController
-
getDntHeaderState
public boolean getDntHeaderState(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getDntHeaderStatein interfaceAnonymousController
-
setDntHeaderState
public void setDntHeaderState(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
setDntHeaderStatein interfaceAnonymousController
-