Package io.streamthoughts.azkarra.http
Class ServerConfig
- java.lang.Object
-
- io.streamthoughts.azkarra.api.config.DelegatingConf
-
- io.streamthoughts.azkarra.http.security.SecurityConfig
-
- io.streamthoughts.azkarra.http.ServerConfig
-
- All Implemented Interfaces:
Conf
public class ServerConfig extends SecurityConfig
The server configuration.
-
-
Field Summary
Fields Modifier and Type Field Description static String
HTTP_SERVER_LISTENER_CONFIG
static String
HTTP_SERVER_PORT_CONFIG
static int
HTTP_SERVER_PORT_DEFAULT
static String
HTTP_SERVER_REST_EXTENSIONS_ENABLE
static String
HTTP_SERVER_WEB_UI_ENABLE_CONFIG
-
Fields inherited from class io.streamthoughts.azkarra.http.security.SecurityConfig
HTTP_AUTH_PRINCIPAL_BUILDER_CLASS_CONFIG, HTTP_AUTH_USER_IDENTITY_MANAGER_CLASS_CONFIG, HTTP_AUTHORIZATION_MANAGER_CLASS_CONFIG, HTTP_HEADLESS_CONFIG, HTTP_RESTRICTED_ROLES_CONFIG, REST_AUTHENTICATION_BASIC_SILENT_CONFIG, REST_AUTHENTICATION_MECHANISM_CONFIG, REST_AUTHENTICATION_REALM_CONFIG, REST_AUTHENTICATION_ROLES_CONFIG, REST_AUTHENTICATION_USERS_CONFIG, SSL_ENABLE, SSL_IGNORE_HOSTNAME_VERIFICATION, SSL_KEY_PASSWORD_CONFIG, SSL_KEYSTORE_LOCATION, SSL_KEYSTORE_PASSWORD, SSL_KEYSTORE_TYPE, SSL_TRUSTSTORE_LOCATION, SSL_TRUSTSTORE_PASSWORD, SSL_TRUSTSTORE_TYPE
-
Fields inherited from class io.streamthoughts.azkarra.api.config.DelegatingConf
originals
-
-
Constructor Summary
Constructors Constructor Description ServerConfig(Conf conf)
Creates a newSecurityConfig
instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getListener()
int
getPort()
boolean
isRestExtensionEnable()
boolean
isUIEnable()
static ServerConfigBuilder
newBuilder()
static ServerConfigBuilder
newBuilder(Conf configs)
static ServerConfigBuilder
newBuilder(Map<String,Object> configs)
static ServerConfig
of(Conf conf)
Static helper that can be used to merge multipleConf
instances.-
Methods inherited from class io.streamthoughts.azkarra.http.security.SecurityConfig
getAuthenticationMechanism, getAuthenticationPrincipalBuilder, getAuthenticationRealm, getAuthenticationRestricted, getAuthenticationRoles, getAuthenticationUsers, getAuthorizationManager, getKeyPassword, getKeystoreLocation, getKeystorePassword, getKeystoreType, getTrustStoreLocation, getTruststorePassword, getTruststoreType, getUserIdentityManager, isBasicAuthenticationSilent, isHeadless, isHostnameVerificationIgnored, isRestAuthenticationEnable, isSslEnable
-
Methods inherited from class io.streamthoughts.azkarra.api.config.DelegatingConf
getBoolean, getClass, getClasses, getConfAsMap, getConfAsProperties, getDouble, getInt, getLong, getString, getStringList, getSubConf, getSubConfList, getValue, hasPath, keySet, withFallback
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.streamthoughts.azkarra.api.config.Conf
getOptionalBoolean, getOptionalDouble, getOptionalInt, getOptionalLong, getOptionalString
-
-
-
-
Field Detail
-
HTTP_SERVER_PORT_CONFIG
public static final String HTTP_SERVER_PORT_CONFIG
- See Also:
- Constant Field Values
-
HTTP_SERVER_PORT_DEFAULT
public static final int HTTP_SERVER_PORT_DEFAULT
- See Also:
- Constant Field Values
-
HTTP_SERVER_LISTENER_CONFIG
public static final String HTTP_SERVER_LISTENER_CONFIG
- See Also:
- Constant Field Values
-
HTTP_SERVER_WEB_UI_ENABLE_CONFIG
public static final String HTTP_SERVER_WEB_UI_ENABLE_CONFIG
- See Also:
- Constant Field Values
-
HTTP_SERVER_REST_EXTENSIONS_ENABLE
public static final String HTTP_SERVER_REST_EXTENSIONS_ENABLE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServerConfig
public ServerConfig(Conf conf)
Creates a newSecurityConfig
instance.- Parameters:
conf
- theConf
instance, cannot benull
.
-
-
Method Detail
-
newBuilder
public static ServerConfigBuilder newBuilder()
-
newBuilder
public static ServerConfigBuilder newBuilder(Conf configs)
-
newBuilder
public static ServerConfigBuilder newBuilder(Map<String,Object> configs)
-
of
public static ServerConfig of(Conf conf)
Description copied from interface:Conf
Static helper that can be used to merge multipleConf
instances.- Returns:
- a new
Conf
instance.
-
getPort
public int getPort()
-
getListener
public String getListener()
-
isUIEnable
public boolean isUIEnable()
-
isRestExtensionEnable
public boolean isRestExtensionEnable()
-
-