Package org.glassfish.jersey.server
Class JerseySeBootstrapConfiguration
java.lang.Object
org.glassfish.jersey.server.JerseySeBootstrapConfiguration
- All Implemented Interfaces:
SeBootstrap.Configuration
public final class JerseySeBootstrapConfiguration
extends Object
implements SeBootstrap.Configuration
Jersey implementation of
SeBootstrap.Configuration
implementing arbitrary methods for acquiring
the configuration settings.- Since:
- 3.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.ws.rs.SeBootstrap.Configuration
SeBootstrap.Configuration.SSLClientAuthentication
-
Field Summary
Fields inherited from interface jakarta.ws.rs.SeBootstrap.Configuration
DEFAULT_PORT, FREE_PORT, HOST, PORT, PROTOCOL, ROOT_PATH, SSL_CLIENT_AUTHENTICATION, SSL_CONTEXT
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Defines if theWebServer
should start on a privileged port when port is not set.boolean
Defines if theWebServer
should automatically start.builder()
Return a Jersey instance ofSeBootstrap.Configuration.Builder
with prefilled values.from
(SeBootstrap.Configuration configuration) Factory method creatingJerseySeBootstrapConfiguration
wrapper aroundSeBootstrap.Configuration
.boolean
isHttps()
If the protocol schema isHTTPS
, returntrue
.ReturnSSLContext
in the configuration if the protocol scheme isHTTPS
.uri
(boolean resolveDefaultPort) ComposeURI
based on properties defined in this configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.ws.rs.SeBootstrap.Configuration
baseUri, baseUriBuilder, hasProperty, host, port, protocol, rootPath, sslClientAuthentication
-
Field Details
-
RANDOM
-
-
Method Details
-
property
- Specified by:
property
in interfaceSeBootstrap.Configuration
-
uri
ComposeURI
based on properties defined in this configuration.- Parameters:
resolveDefaultPort
- iftrue
the port is not set, it is resolved asContainer.DEFAULT_HTTP_PORT
orContainer.DEFAULT_HTTPS_PORT
based on the protocol scheme.- Returns:
- Composed
URI
based on properties defined in this configuration.
-
sslContext
ReturnSSLContext
in the configuration if the protocol scheme isHTTPS
.- Specified by:
sslContext
in interfaceSeBootstrap.Configuration
- Returns:
- the SSLContext in the configuration.
-
isHttps
public boolean isHttps()If the protocol schema isHTTPS
, returntrue
.- Returns:
true
when the protocol schema isHTTPS
.
-
autoStart
public boolean autoStart()Defines if theWebServer
should automatically start.- Returns:
- false if
ServerProperties.WEBSERVER_AUTO_START
isfalse
,true
otherwise.
-
allowPrivilegedPorts
public boolean allowPrivilegedPorts()Defines if theWebServer
should start on a privileged port when port is not set.- Returns:
- true if
ServerProperties.WEBSERVER_AUTO_START
istrue
,false
otherwise.
-
from
Factory method creatingJerseySeBootstrapConfiguration
wrapper aroundSeBootstrap.Configuration
.- Parameters:
configuration
- wrapped configuration- Returns:
JerseySeBootstrapConfiguration
wrapper aroundSeBootstrap.Configuration
.
-
builder
Return a Jersey instance ofSeBootstrap.Configuration.Builder
with prefilled values.- Returns:
- a Jersey instance of
SeBootstrap.Configuration.Builder
.
-