- java.lang.Object
-
- io.helidon.webserver.jersey.JerseySupport.Builder
-
- All Implemented Interfaces:
Builder<JerseySupport>
,Supplier<JerseySupport>
,Configurable<JerseySupport.Builder>
- Enclosing class:
- JerseySupport
public static final class JerseySupport.Builder extends Object implements Configurable<JerseySupport.Builder>, Builder<JerseySupport>
Builder for convenient way to createJerseySupport
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JerseySupport.Builder
asyncExecutorService(ExecutorService executorService)
Sets the executor service to use for a handling of asynchronous requests withAsyncResponse
.JerseySupport
build()
Jersey Module builder class for convenient creatingJerseySupport
.JerseySupport.Builder
config(Config config)
Update configuration from Config.JerseySupport.Builder
executorService(ExecutorService executorService)
Sets the executor service to use for a handling of request that matches a path where theJerseySupport
is registered.Configuration
getConfiguration()
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.JerseySupport.Builder
property(String key, Object value)
JerseySupport.Builder
register(Class<?> componentClass)
JerseySupport.Builder
register(Class<?> componentClass, int priority)
JerseySupport.Builder
register(Class<?> componentClass, Class<?>... contracts)
JerseySupport.Builder
register(Class<?> componentClass, Map<Class<?>,Integer> contracts)
JerseySupport.Builder
register(Object component)
JerseySupport.Builder
register(Object component, int priority)
JerseySupport.Builder
register(Object component, Class<?>... contracts)
JerseySupport.Builder
register(Object component, Map<Class<?>,Integer> contracts)
JerseySupport.Builder
registerResources(Resource... resources)
-
-
-
Method Detail
-
build
public JerseySupport build()
Jersey Module builder class for convenient creatingJerseySupport
.- Specified by:
build
in interfaceBuilder<JerseySupport>
- Returns:
- built module
-
getConfiguration
public Configuration getConfiguration()
- Specified by:
getConfiguration
in interfaceConfigurable<JerseySupport.Builder>
-
property
public JerseySupport.Builder property(String key, Object value)
- Specified by:
property
in interfaceConfigurable<JerseySupport.Builder>
-
register
public JerseySupport.Builder register(Class<?> componentClass)
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
register
public JerseySupport.Builder register(Class<?> componentClass, int priority)
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
register
public JerseySupport.Builder register(Class<?> componentClass, Class<?>... contracts)
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
register
public JerseySupport.Builder register(Class<?> componentClass, Map<Class<?>,Integer> contracts)
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
register
public JerseySupport.Builder register(Object component)
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
register
public JerseySupport.Builder register(Object component, int priority)
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
register
public JerseySupport.Builder register(Object component, Class<?>... contracts)
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
register
public JerseySupport.Builder register(Object component, Map<Class<?>,Integer> contracts)
- Specified by:
register
in interfaceConfigurable<JerseySupport.Builder>
-
registerResources
public JerseySupport.Builder registerResources(Resource... resources)
- Parameters:
resources
- resources to register- Returns:
- an updated instance
-
executorService
public JerseySupport.Builder executorService(ExecutorService 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
public JerseySupport.Builder asyncExecutorService(ExecutorService executorService)
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
public JerseySupport.Builder config(Config 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
-
-