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 ClassesNested classes/interfaces inherited from interface jakarta.ws.rs.SeBootstrap.Configuration
SeBootstrap.Configuration.SSLClientAuthentication -
Field Summary
FieldsFields 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 TypeMethodDescriptionbooleanDefines if theWebServershould start on a privileged port when port is not set.booleanDefines if theWebServershould automatically start.builder()Return a Jersey instance ofSeBootstrap.Configuration.Builderwith prefilled values.from(SeBootstrap.Configuration configuration) Factory method creatingJerseySeBootstrapConfigurationwrapper aroundSeBootstrap.Configuration.booleanisHttps()If the protocol schema isHTTPS, returntrue.ReturnSSLContextin the configuration if the protocol scheme isHTTPS.uri(boolean resolveDefaultPort) ComposeURIbased on properties defined in this configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.ws.rs.SeBootstrap.Configuration
baseUri, baseUriBuilder, hasProperty, host, port, protocol, rootPath, sslClientAuthentication
-
Field Details
-
RANDOM
-
-
Method Details
-
property
- Specified by:
propertyin interfaceSeBootstrap.Configuration
-
uri
ComposeURIbased on properties defined in this configuration.- Parameters:
resolveDefaultPort- iftruethe port is not set, it is resolved asContainer.DEFAULT_HTTP_PORTorContainer.DEFAULT_HTTPS_PORTbased on the protocol scheme.- Returns:
- Composed
URIbased on properties defined in this configuration.
-
sslContext
ReturnSSLContextin the configuration if the protocol scheme isHTTPS.- Specified by:
sslContextin interfaceSeBootstrap.Configuration- Returns:
- the SSLContext in the configuration.
-
isHttps
public boolean isHttps()If the protocol schema isHTTPS, returntrue.- Returns:
truewhen the protocol schema isHTTPS.
-
autoStart
public boolean autoStart()Defines if theWebServershould automatically start.- Returns:
- false if
ServerProperties.WEBSERVER_AUTO_STARTisfalse,trueotherwise.
-
allowPrivilegedPorts
public boolean allowPrivilegedPorts()Defines if theWebServershould start on a privileged port when port is not set.- Returns:
- true if
ServerProperties.WEBSERVER_AUTO_STARTistrue,falseotherwise.
-
from
Factory method creatingJerseySeBootstrapConfigurationwrapper aroundSeBootstrap.Configuration.- Parameters:
configuration- wrapped configuration- Returns:
JerseySeBootstrapConfigurationwrapper aroundSeBootstrap.Configuration.
-
builder
Return a Jersey instance ofSeBootstrap.Configuration.Builderwith prefilled values.- Returns:
- a Jersey instance of
SeBootstrap.Configuration.Builder.
-