java.lang.Object
io.helidon.webserver.jersey.JerseySupport.Builder
- All Implemented Interfaces:
Builder<JerseySupport.Builder,
,JerseySupport> Configurable<JerseySupport.Builder>
,Supplier<JerseySupport>
- Enclosing class:
- JerseySupport
public static final class JerseySupport.Builder
extends Object
implements Configurable<JerseySupport.Builder>, Builder<JerseySupport.Builder,JerseySupport>
Builder for convenient way to create
JerseySupport
.-
Method Summary
Modifier and TypeMethodDescriptionasyncExecutorService
(ExecutorService executorService) Sets the executor service to use for a handling of asynchronous requests withAsyncResponse
.build()
Jersey Module builder class for convenient creatingJerseySupport
.Update configuration from Config.executorService
(ExecutorService executorService) Sets the executor service to use for a handling of request that matches a path where theJerseySupport
is registered.injectionManager
(org.glassfish.jersey.internal.inject.InjectionManager injectionManager) Sets a Jersey injection manager to enable sharing across multiple JAX-RS applications in the same Helidon application.registerResources
(Resource... resources)
-
Method Details
-
build
Jersey Module builder class for convenient creatingJerseySupport
.- Specified by:
build
in interfaceBuilder<JerseySupport.Builder,
JerseySupport> - Returns:
- built module
-
getConfiguration
- Specified by:
getConfiguration
in interfaceConfigurable<JerseySupport.Builder>
-
property
- Specified by:
property
in interfaceConfigurable<JerseySupport.Builder>
-
register
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
register
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
register
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
register
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
register
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
register
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
register
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
register
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
registerResources
- Parameters:
resources
- resources to register- Returns:
- an updated instance
-
executorService
Sets the executor service to use for a handling of request that matches a path where theJerseySupport
is registered.- Parameters:
executorService
- the executor service to use for a handling of requests that go to the Jersey application- Returns:
- an updated instance
-
asyncExecutorService
Sets the executor service to use for a handling of asynchronous requests withAsyncResponse
.- Parameters:
executorService
- the executor service to use for a handling of asynchronous requests- Returns:
- an updated instance
-
config
Update configuration from Config. Currently used to set up async executor service only.- Parameters:
config
- configuration at the Jersey configuration node- Returns:
- updated builder instance
-
injectionManager
public JerseySupport.Builder injectionManager(org.glassfish.jersey.internal.inject.InjectionManager injectionManager) Sets a Jersey injection manager to enable sharing across multiple JAX-RS applications in the same Helidon application.- Parameters:
injectionManager
- the injection manager- Returns:
- updated builder instance
-