Package org.glassfish.jersey.server
Class JerseySeBootstrapConfiguration.Builder
java.lang.Object
org.glassfish.jersey.server.JerseySeBootstrapConfiguration.Builder
- All Implemented Interfaces:
SeBootstrap.Configuration.Builder
- Enclosing class:
- JerseySeBootstrapConfiguration
public static final class JerseySeBootstrapConfiguration.Builder
extends Object
implements SeBootstrap.Configuration.Builder
-
Method Summary
Modifier and TypeMethodDescriptionDefine if theWebServer
should auto-start at bootstrap.build()
from
(BiFunction<String, Class<T>, Optional<T>> configProvider) webServerClass
(Class<? extends WebServer> webServerClass) Set the the respectiveWebServer
class to be used by theWebServerProvider
.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.Builder
host, port, protocol, rootPath, sslClientAuthentication, sslContext
-
Method Details
-
build
- Specified by:
build
in interfaceSeBootstrap.Configuration.Builder
-
property
- Specified by:
property
in interfaceSeBootstrap.Configuration.Builder
-
webServerClass
public JerseySeBootstrapConfiguration.Builder webServerClass(Class<? extends WebServer> webServerClass) Set the the respectiveWebServer
class to be used by theWebServerProvider
.- Parameters:
webServerClass
- the class implementingWebServer
.- Returns:
- the updated builder.
-
autoStart
Define if theWebServer
should auto-start at bootstrap.- Parameters:
autostart
- the auto-start flag.- Returns:
- the updated builder.
-
from
public <T> JerseySeBootstrapConfiguration.Builder from(BiFunction<String, Class<T>, Optional<T>> configProvider) - Specified by:
from
in interfaceSeBootstrap.Configuration.Builder
-
from
- Specified by:
from
in interfaceSeBootstrap.Configuration.Builder
-