/** * Create a new RestletCloudFilter with the specified configuration. * * @param context * The current context. * @param restletCloudConfig * The RestletCloudService configuration. */ public RestletCloudFilter(Context context, RestletCloudConfig restletCloudConfig, boolean agentEnabled, boolean firewallEnabled, List<FirewallRule> firewallRules) { super(context); this.firewallRules = firewallRules; this.firewallEnabled = firewallEnabled; this.restletCloudConfig = restletCloudConfig; this.agentEnabled = agentEnabled; this.context = context; validateRedirection(restletCloudConfig); if (agentEnabled) { validateAgentConfiguration(restletCloudConfig); modulesSettings = ModulesSettingsModule.getModulesSettings( restletCloudConfig, null); } refreshRestletCloudFilter(); }
/** * Create a new RestletCloudFilter with the specified configuration. * * @param context * The current context. * @param restletCloudConfig * The RestletCloudService configuration. */ public RestletCloudFilter(Context context, RestletCloudConfig restletCloudConfig, boolean agentEnabled, boolean firewallEnabled, List<FirewallRule> firewallRules) { super(context); this.firewallRules = firewallRules; this.firewallEnabled = firewallEnabled; this.restletCloudConfig = restletCloudConfig; this.agentEnabled = agentEnabled; this.context = context; validateRedirection(restletCloudConfig); if (agentEnabled) { validateAgentConfiguration(restletCloudConfig); modulesSettings = ModulesSettingsModule.getModulesSettings( restletCloudConfig, null); } refreshRestletCloudFilter(); }
/** * Create a new RestletCloudFilter with the specified configuration. * * @param context * The current context. * @param restletCloudConfig * The RestletCloudService configuration. */ public RestletCloudFilter(Context context, RestletCloudConfig restletCloudConfig, boolean agentEnabled, boolean firewallEnabled, List<FirewallRule> firewallRules) { super(context); this.firewallRules = firewallRules; this.firewallEnabled = firewallEnabled; this.restletCloudConfig = restletCloudConfig; this.agentEnabled = agentEnabled; this.context = context; validateRedirection(restletCloudConfig); if (agentEnabled) { validateAgentConfiguration(restletCloudConfig); modulesSettings = ModulesSettingsModule.getModulesSettings( restletCloudConfig, null); } refreshRestletCloudFilter(); }
/** * Create a new RestletCloudFilter with the specified configuration. * * @param context * The current context. * @param restletCloudConfig * The RestletCloudService configuration. */ public RestletCloudFilter(Context context, RestletCloudConfig restletCloudConfig, boolean agentEnabled, boolean firewallEnabled, List<FirewallRule> firewallRules) { super(context); this.firewallRules = firewallRules; this.firewallEnabled = firewallEnabled; this.restletCloudConfig = restletCloudConfig; this.agentEnabled = agentEnabled; this.context = context; validateRedirection(restletCloudConfig); if (agentEnabled) { validateAgentConfiguration(restletCloudConfig); modulesSettings = ModulesSettingsModule.getModulesSettings( restletCloudConfig, null); } refreshRestletCloudFilter(); }