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 theWebServershould auto-start at bootstrap.build()from(BiFunction<String, Class<T>, Optional<T>> configProvider) webServerClass(Class<? extends WebServer> webServerClass) Set the the respectiveWebServerclass to be used by theWebServerProvider.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.Builder
host, port, protocol, rootPath, sslClientAuthentication, sslContext
-
Method Details
-
build
- Specified by:
buildin interfaceSeBootstrap.Configuration.Builder
-
property
- Specified by:
propertyin interfaceSeBootstrap.Configuration.Builder
-
webServerClass
public JerseySeBootstrapConfiguration.Builder webServerClass(Class<? extends WebServer> webServerClass) Set the the respectiveWebServerclass to be used by theWebServerProvider.- Parameters:
webServerClass- the class implementingWebServer.- Returns:
- the updated builder.
-
autoStart
Define if theWebServershould 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:
fromin interfaceSeBootstrap.Configuration.Builder
-
from
- Specified by:
fromin interfaceSeBootstrap.Configuration.Builder
-