Initialization Settings
This document describes all initialization settings available in NetFunnelInitialize.
Required Parameters
The initialization settings require clientId and secretKey parameters.
Getting Client ID and Secret Key
For how to get Client ID and Secret Key and initialization examples, refer to the Quick Start document.
Basic Initialization
Using Only Required Parameters
NetFunnelInitialize config = NetFunnelInitialize.Companion.builder()
.clientId("{{CLIENT_ID}}")
.secretKey("{{SECRET_KEY}}")
.build();
Initialization Setting Parameters
| Field | Type | Default | Description | Agent Version |
|---|---|---|---|---|
clientId | String | N/A | Enter the client ID issued from the console. | 4.0.1 or higher |
secretKey | String | N/A | Enter the encryption key issued from the console. | 4.0.1 or higher |
serverUrl | String | N/A | URL of the NetFUNNEL server. Used when accessing the server with a separate URL without using CNAME and not using clientId-based URL composition. (Supported for compatibility with existing methods.) | 4.0.1 or higher |
settingUrl | String | N/A | URL of the NetFUNNEL configuration file. Used when loading the configuration file with a separate URL without using CNAME and not using clientId-based URL composition. (Supported for compatibility with existing methods.) | 4.0.1 or higher |
vwrPageUrl | String | N/A | URL of the NetFUNNEL VWR Page. Specified when entering the waiting room page with a separate URL without using CNAME and not using clientId-based URL composition. | 4.0.1 or higher |
returnKey | boolean | true | When a user passes through the queue and enters the page, the next user can enter immediately. If the option is disabled, the next user will wait for a certain period even after the user enters the page. (Timeout settings can be configured in Console > Segment Settings > Advanced Settings.) | 4.0.1 or higher |
logLevel | Level | Level.OFF | Sets the log level based on ch.qos.logback.classic.Level, so the dependency must be added. Available levels: ERROR, WARN, INFO, DEBUG, TRACE, OFF | 4.0.1 or higher |
goodBots | Array<String> | N/A | Configures to exclude good bots (search engines, etc.) from NetFUNNEL entry requests. Accepts an array of strings. Example: ["Googlebot", "Bingbot"] | 4.0.1 or higher |
userId | String | N/A | When this value is entered, the ID is used to distinguish whitelist and permanently blocked users. The ID set in Console > Repeated Request Blocking > User Settings > Accessor Management is applied. | 4.0.1 or higher |
vwrPageDomain | String | N/A | Used when constructing VWR Page URL with CNAME domain only. Example: https://vwr.example.com | 4.0.1 or higher |
cookieDomain | String | N/A | You can directly specify the domain value of the NetFUNNEL cookie to be issued. | 4.0.1 or higher |
Configuration Examples
Basic Configuration
NetFunnelInitialize config = NetFunnelInitialize.Companion.builder()
.clientId("{{CLIENT_ID}}")
.secretKey("{{SECRET_KEY}}")
.build();
Log Level Configuration
import ch.qos.logback.classic.Level;
NetFunnelInitialize config = NetFunnelInitialize.Companion.builder()
.clientId("{{CLIENT_ID}}")
.secretKey("{{SECRET_KEY}}")
.logLevel(Level.INFO)
.build();
Good Bot Exception Handling
NetFunnelInitialize config = NetFunnelInitialize.Companion.builder()
.clientId("{{CLIENT_ID}}")
.secretKey("{{SECRET_KEY}}")
.goodBots(new String[]{"Googlebot", "Bingbot", "Slurp", "Applebot", "facebookexternalhit"})
.build();
User Identification Configuration
NetFunnelInitialize config = NetFunnelInitialize.Companion.builder()
.clientId("{{CLIENT_ID}}")
.secretKey("{{SECRET_KEY}}")
.userId("{{USER_ID}}")
.build();
Disable Automatic Entry Key Return
NetFunnelInitialize config = NetFunnelInitialize.Companion.builder()
.clientId("{{CLIENT_ID}}")
.secretKey("{{SECRET_KEY}}")
.returnKey(false)
.build();
Change Waiting Room Domain
NetFunnelInitialize config = NetFunnelInitialize.Companion.builder()
.clientId("{{CLIENT_ID}}")
.secretKey("{{SECRET_KEY}}")
.vwrPageDomain("https://wait.example.com")
.build();
Cookie Domain Configuration
NetFunnelInitialize config = NetFunnelInitialize.Companion.builder()
.clientId("{{CLIENT_ID}}")
.secretKey("{{SECRET_KEY}}")
.cookieDomain(".example.com")
.build();
Complete Configuration Example
import ch.qos.logback.classic.Level;
NetFunnelInitialize config = NetFunnelInitialize.Companion.builder()
// Required
.clientId("{{CLIENT_ID}}")
.secretKey("{{SECRET_KEY}}")
// Server configuration (optional)
.serverUrl("https://custom-server.example.com")
.settingUrl("https://custom-setting.example.com")
.vwrPageUrl("https://custom-vwr.example.com")
// Waiting room settings
.vwrPageDomain("https://wait.example.com")
.cookieDomain(".example.com")
// Key management
.returnKey(true)
// Logging
.logLevel(Level.INFO)
// Bot exception handling
.goodBots(new String[]{"Googlebot", "Bingbot"})
// User identification
.userId("{{USER_ID}}")
.build();
Parameter Validation
clientId
- Required
- Type: String
- Validation: Cannot be empty string
- Source: NetFUNNEL Console → Profile Icon →
Integration Credentials
secretKey
- Required
- Type: String
- Validation: Cannot be empty string
- Source: NetFUNNEL Console → Profile Icon →
Integration Credentials
logLevel
- Optional
- Type:
ch.qos.logback.classic.Level - Default:
Level.OFF - Available Levels:
ERROR,WARN,INFO,DEBUG,TRACE,OFF - Dependency: logback-classic required
goodBots
- Optional
- Type:
String[] - Default: null
- Example:
new String[]{"Googlebot", "Bingbot"}
returnKey
- Optional
- Type: boolean
- Default: true
- Behavior: Returns key immediately when
true, returns according to timeout settings whenfalse
Related Documentation
- Installation and Initialization: Configuration guide with initialization examples
- API Reference: Function specifications and usage
- Troubleshooting: Common issues and solutions