@ConfigRoot(phase=RUN_TIME) public class HttpConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
BodyConfig |
body
Request body related settings
|
CORSConfig |
cors
The CORS config
|
boolean |
corsEnabled
Enable the CORS filter.
|
Optional<String> |
encryptionKey
The encryption key that is used to store persistent logins (e.g.
|
String |
host
The HTTP host
|
Duration |
idleTimeout
Http connection idle timeout
|
OptionalInt |
ioThreads
The number if IO threads used to perform IO.
|
ServerLimitsConfig |
limits
Server limits configuration
|
int |
port
The HTTP port
|
ServerSslConfig |
ssl
The SSL config
|
int |
sslPort
The HTTPS port
|
int |
testPort
The HTTP port used to run tests
|
int |
testSslPort
The HTTPS port used to run tests
|
| Constructor and Description |
|---|
HttpConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
int |
determinePort(LaunchMode launchMode) |
int |
determineSslPort(LaunchMode launchMode) |
@ConfigItem(name="cors", defaultValue="false") public boolean corsEnabled
@ConfigItem(defaultValue="8080") public int port
@ConfigItem(defaultValue="8081") public int testPort
@ConfigItem(defaultValue="0.0.0.0") public String host
@ConfigItem(defaultValue="8443") public int sslPort
@ConfigItem(defaultValue="8444") public int testSslPort
public CORSConfig cors
public ServerSslConfig ssl
@ConfigItem public OptionalInt ioThreads
public ServerLimitsConfig limits
@ConfigItem(defaultValue="30M", name="idle-timeout") public Duration idleTimeout
public BodyConfig body
@ConfigItem(name="auth.session.encryption-key") public Optional<String> encryptionKey
public int determinePort(LaunchMode launchMode)
public int determineSslPort(LaunchMode launchMode)
Copyright © 2020 JBoss by Red Hat. All rights reserved.