@Override public void run() { flushLogs(); } }, postPeriodInMs, postPeriodInMs);
public ReverseProxyModule(Context context, String targetTemplate, boolean authenticationEnabled) { super(context, targetTemplate, Redirector.MODE_SERVER_OUTBOUND); this.authenticationEnabled = authenticationEnabled; setHeadersCleaning(false); }
public void updateFirewallConfig(FirewallConfig firewallConfig) { addIpFilterRules(firewallSettings, firewallConfig); addRateLimitationRules(firewallSettings, firewallConfig); }
@Override protected void afterHandle(Request request, Response response) { long startTime = (Long) request.getAttributes().get( "org.restlet.startTime"); int duration = (int) (getTimeMillis() - startTime); analyticsHandler.addCallLogToBuffer(request, response, duration, startTime); }
/** * Create a new Authentication module with the specified settings. * * @param restletCloudConfig * The agent configuration. * @param modulesSettings * The modules settings. * @param context * The context. */ public AnalyticsModule(RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings, Context context) { super(context); analyticsHandler = new AnalyticsHandler(restletCloudConfig, modulesSettings); }
public void updateFirewallConfig(FirewallConfig firewallConfig) { addIpFilterRules(firewallSettings, firewallConfig); addRateLimitationRules(firewallSettings, firewallConfig); }
@Override protected void afterHandle(Request request, Response response) { long startTime = (Long) request.getAttributes().get( "org.restlet.startTime"); int duration = (int) (getTimeMillis() - startTime); analyticsHandler.addCallLogToBuffer(request, response, duration, startTime); }
@Override public void run() { flushLogs(); } }, postPeriodInMs, postPeriodInMs);
public ReverseProxyModule(Context context, String targetTemplate, boolean authenticationEnabled) { super(context, targetTemplate, Redirector.MODE_SERVER_OUTBOUND); this.authenticationEnabled = authenticationEnabled; setHeadersCleaning(false); }
/** * Create a new Authentication module with the specified settings. * * @param restletCloudConfig * The agent configuration. * @param modulesSettings * The modules settings. * @param context * The context. */ public AnalyticsModule(RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings, Context context) { super(context); analyticsHandler = new AnalyticsHandler(restletCloudConfig, modulesSettings); }
public void updateFirewallConfig(FirewallConfig firewallConfig) { addIpFilterRules(firewallSettings, firewallConfig); addRateLimitationRules(firewallSettings, firewallConfig); }
@Override protected void afterHandle(Request request, Response response) { long startTime = (Long) request.getAttributes().get( "org.restlet.startTime"); int duration = (int) (getTimeMillis() - startTime); analyticsHandler.addCallLogToBuffer(request, response, duration, startTime); }
@Override public void run() { flushLogs(); } }, postPeriodInMs, postPeriodInMs);
public ReverseProxyModule(Context context, String targetTemplate, boolean authenticationEnabled) { super(context, targetTemplate, Redirector.MODE_SERVER_OUTBOUND); this.authenticationEnabled = authenticationEnabled; setHeadersCleaning(false); }
/** * Create a new Authentication module with the specified settings. * * @param restletCloudConfig * The agent configuration. * @param modulesSettings * The modules settings. * @param context * The context. */ public AnalyticsModule(RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings, Context context) { super(context); analyticsHandler = new AnalyticsHandler(restletCloudConfig, modulesSettings); }
public void updateFirewallConfig(FirewallConfig firewallConfig) { addIpFilterRules(firewallSettings, firewallConfig); addRateLimitationRules(firewallSettings, firewallConfig); }
@Override protected void afterHandle(Request request, Response response) { long startTime = (Long) request.getAttributes().get( "org.restlet.startTime"); int duration = (int) (getTimeMillis() - startTime); analyticsHandler.addCallLogToBuffer(request, response, duration, startTime); }
@Override public void run() { flushLogs(); } }, postPeriodInMs, postPeriodInMs);
public ReverseProxyModule(Context context, String targetTemplate, boolean authenticationEnabled) { super(context, targetTemplate, Redirector.MODE_SERVER_OUTBOUND); this.authenticationEnabled = authenticationEnabled; setHeadersCleaning(false); }
/** * Create a new Authentication module with the specified settings. * * @param restletCloudConfig * The agent configuration. * @param modulesSettings * The modules settings. * @param context * The context. */ public AnalyticsModule(RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings, Context context) { super(context); analyticsHandler = new AnalyticsHandler(restletCloudConfig, modulesSettings); }