Class OpenVpnControllerImpl
java.lang.Object
org.eblocker.server.http.controller.impl.OpenVpnControllerImpl
- All Implemented Interfaces:
OpenVpnController
This is the REST-Controller to provide the interface between frontend and backend for handling the routing of client
traffic through OpenVPN instances (user configured VPN services).
-
Constructor Summary
ConstructorsConstructorDescriptionOpenVpnControllerImpl(AnonymousService anonymousService, OpenVpnService openVpnService, SessionStore sessionStore, DeviceService deviceService, OpenVpnConfigurator configurator) -
Method Summary
Modifier and TypeMethodDescriptioncreateProfile(org.restexpress.Request request, org.restexpress.Response response) voiddeleteProfile(org.restexpress.Request request, org.restexpress.Response response) getProfile(org.restexpress.Request request, org.restexpress.Response response) getProfileConfig(org.restexpress.Request request, org.restexpress.Response response) getProfiles(org.restexpress.Request request, org.restexpress.Response response) booleangetVpnDeviceStatus(org.restexpress.Request request, org.restexpress.Response response) getVpnStatus(org.restexpress.Request request, org.restexpress.Response response) getVpnStatusByDevice(org.restexpress.Request request, org.restexpress.Response response) voidsetVpnDeviceStatus(org.restexpress.Request request, org.restexpress.Response response) setVpnStatus(org.restexpress.Request request, org.restexpress.Response response) voidsetVpnThisDeviceStatus(org.restexpress.Request request, org.restexpress.Response response) updateProfile(org.restexpress.Request request, org.restexpress.Response response) uploadProfileConfig(org.restexpress.Request request, org.restexpress.Response response) uploadProfileConfigOption(org.restexpress.Request request, org.restexpress.Response response)
-
Constructor Details
-
OpenVpnControllerImpl
@Inject public OpenVpnControllerImpl(AnonymousService anonymousService, OpenVpnService openVpnService, SessionStore sessionStore, DeviceService deviceService, OpenVpnConfigurator configurator)
-
-
Method Details
-
getProfiles
public Collection<VpnProfile> getProfiles(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getProfilesin interfaceOpenVpnController
-
createProfile
- Specified by:
createProfilein interfaceOpenVpnController
-
getProfile
- Specified by:
getProfilein interfaceOpenVpnController
-
updateProfile
- Specified by:
updateProfilein interfaceOpenVpnController
-
deleteProfile
public void deleteProfile(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
deleteProfilein interfaceOpenVpnController
-
getProfileConfig
public OpenVpnConfigurationViewModel getProfileConfig(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getProfileConfigin interfaceOpenVpnController
-
uploadProfileConfig
public OpenVpnConfigurationViewModel uploadProfileConfig(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
uploadProfileConfigin interfaceOpenVpnController
-
uploadProfileConfigOption
public OpenVpnConfigurationViewModel uploadProfileConfigOption(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
uploadProfileConfigOptionin interfaceOpenVpnController
-
getVpnStatusByDevice
public VpnStatus getVpnStatusByDevice(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getVpnStatusByDevicein interfaceOpenVpnController
-
getVpnStatus
- Specified by:
getVpnStatusin interfaceOpenVpnController
-
setVpnStatus
- Specified by:
setVpnStatusin interfaceOpenVpnController
-
getVpnDeviceStatus
public boolean getVpnDeviceStatus(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getVpnDeviceStatusin interfaceOpenVpnController
-
setVpnDeviceStatus
public void setVpnDeviceStatus(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
setVpnDeviceStatusin interfaceOpenVpnController
-
setVpnThisDeviceStatus
public void setVpnThisDeviceStatus(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
setVpnThisDeviceStatusin interfaceOpenVpnController
-