Class SettingsControllerImpl
java.lang.Object
org.eblocker.server.http.controller.impl.SettingsControllerImpl
- All Implemented Interfaces:
SettingsController
-
Constructor Summary
ConstructorsConstructorDescriptionSettingsControllerImpl(SettingsService settingsService, DataSource dataSource, TorExitNodeCountries torExitNodeCountries, ScriptRunner scriptRunner, String setTimezoneCommand) -
Method Summary
Modifier and TypeMethodDescriptiongetLocaleSettings(org.restexpress.Request request, org.restexpress.Response response) setLocale(org.restexpress.Request request, org.restexpress.Response response) setTimeZone(org.restexpress.Request request, org.restexpress.Response response)
-
Constructor Details
-
SettingsControllerImpl
@Inject public SettingsControllerImpl(SettingsService settingsService, DataSource dataSource, TorExitNodeCountries torExitNodeCountries, ScriptRunner scriptRunner, String setTimezoneCommand) throws IOException - Throws:
IOException
-
-
Method Details
-
getLocaleSettings
public LocaleSettings getLocaleSettings(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getLocaleSettingsin interfaceSettingsController
-
setTimeZone
public LocaleSettings setTimeZone(org.restexpress.Request request, org.restexpress.Response response) throws IOException - Specified by:
setTimeZonein interfaceSettingsController- Throws:
IOException
-
setLocale
public LocaleSettings setLocale(org.restexpress.Request request, org.restexpress.Response response) throws IOException - Specified by:
setLocalein interfaceSettingsController- Throws:
IOException
-