Uses of Class
org.glassfish.jersey.server.ResourceConfig
-
Packages that use ResourceConfig Package Description org.glassfish.jersey.jdkhttp The container adapter betweenJDK HTTP server
and JerseyJersey application handler
classes.org.glassfish.jersey.jetty Jersey Jetty container classes.org.glassfish.jersey.server Jersey server-side classes.org.glassfish.jersey.server.filter Provides core server filters.org.glassfish.jersey.server.internal.monitoring Jersey server-side internal monitoring and statistics classes.org.glassfish.jersey.server.monitoring Jersey server-side monitoring JMX MBeans interfaces.org.glassfish.jersey.server.spi Jersey server-side service provider contract (SPI) classes.org.glassfish.jersey.servlet Jersey generic Servlet container integration classes.org.glassfish.jersey.servlet.internal Jersey internal Servlet API.org.glassfish.jersey.servlet.internal.spi Jersey internal Servlet SPI.org.glassfish.jersey.simple Jersey Simple 6.x container classes. -
-
Uses of ResourceConfig in org.glassfish.jersey.jdkhttp
Methods in org.glassfish.jersey.jdkhttp that return ResourceConfig Modifier and Type Method Description ResourceConfig
JdkHttpHandlerContainer. getConfiguration()
Methods in org.glassfish.jersey.jdkhttp with parameters of type ResourceConfig Modifier and Type Method Description static com.sun.net.httpserver.HttpServer
JdkHttpServerFactory. createHttpServer(java.net.URI uri, ResourceConfig configuration)
Create and start theJDK HttpServer
with the Jersey application deployed at the givenURI
.static com.sun.net.httpserver.HttpServer
JdkHttpServerFactory. createHttpServer(java.net.URI uri, ResourceConfig configuration, boolean start)
Create (and possibly start) theJDK HttpServer
with the JAX-RS / Jersey application deployed on the givenURI
.static com.sun.net.httpserver.HttpServer
JdkHttpServerFactory. createHttpServer(java.net.URI uri, ResourceConfig configuration, java.lang.Object parentContext)
Create (and possibly start) theJDK HttpServer
with the JAX-RS / Jersey application deployed on the givenURI
.static com.sun.net.httpserver.HttpServer
JdkHttpServerFactory. createHttpServer(java.net.URI uri, ResourceConfig configuration, java.lang.Object parentContext, javax.net.ssl.SSLContext sslContext, boolean start)
Create (and possibly start) theJDK HttpServer
, eventuallyHttpServer
's subclassHttpsServer
with the JAX-RS / Jersey application deployed on the givenURI
.static com.sun.net.httpserver.HttpServer
JdkHttpServerFactory. createHttpServer(java.net.URI uri, ResourceConfig configuration, javax.net.ssl.SSLContext sslContext)
Create and start theJDK HttpServer
, eventuallyHttpServer
's subclassJDK HttpsServer
with the JAX-RS / Jersey application deployed on the givenURI
.static com.sun.net.httpserver.HttpServer
JdkHttpServerFactory. createHttpServer(java.net.URI uri, ResourceConfig configuration, javax.net.ssl.SSLContext sslContext, boolean start)
Create (and possibly start) theJDK HttpServer
, eventuallyHttpServer
's subclassJDK HttpsServer
with the JAX-RS / Jersey application deployed on the givenURI
.void
JdkHttpHandlerContainer. reload(ResourceConfig configuration)
-
Uses of ResourceConfig in org.glassfish.jersey.jetty
Methods in org.glassfish.jersey.jetty that return ResourceConfig Modifier and Type Method Description ResourceConfig
JettyHttpContainer. getConfiguration()
Methods in org.glassfish.jersey.jetty with parameters of type ResourceConfig Modifier and Type Method Description static org.eclipse.jetty.server.Server
JettyHttpContainerFactory. createServer(java.net.URI uri, org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory, ResourceConfig config)
Create aServer
that registers anHandler
that in turn manages all root resource and provider classes declared by the resource configuration.static org.eclipse.jetty.server.Server
JettyHttpContainerFactory. createServer(java.net.URI uri, ResourceConfig config)
Create aServer
that registers anHandler
that in turn manages all root resource and provider classes declared by the resource configuration.static org.eclipse.jetty.server.Server
JettyHttpContainerFactory. createServer(java.net.URI uri, ResourceConfig configuration, boolean start)
Create aServer
that registers anHandler
that in turn manages all root resource and provider classes declared by the resource configuration.static org.eclipse.jetty.server.Server
JettyHttpContainerFactory. createServer(java.net.URI uri, ResourceConfig config, boolean start, java.lang.Object parentContext)
Create aServer
that registers anHandler
that in turn manages all root resource and provider classes declared by the resource configuration.static org.eclipse.jetty.server.Server
JettyHttpContainerFactory. createServer(java.net.URI uri, ResourceConfig config, java.lang.Object parentContext)
Create aServer
that registers anHandler
that in turn manages all root resource and provider classes declared by the resource configuration.void
JettyHttpContainer. reload(ResourceConfig configuration)
-
Uses of ResourceConfig in org.glassfish.jersey.server
Subclasses of ResourceConfig in org.glassfish.jersey.server Modifier and Type Class Description private static class
ResourceConfig.RuntimeConfig
private static class
ResourceConfig.WrappingResourceConfig
Fields in org.glassfish.jersey.server declared as ResourceConfig Modifier and Type Field Description private ResourceConfig
ApplicationHandler. runtimeConfig
Methods in org.glassfish.jersey.server that return ResourceConfig Modifier and Type Method Description (package private) ResourceConfig
ResourceConfig. _setApplication(javax.ws.rs.core.Application app)
Allows overriding the setApplication() method functionality in WrappingResourceConfig.(package private) ResourceConfig
ResourceConfig.WrappingResourceConfig. _setApplication(javax.ws.rs.core.Application application)
Set theJAX-RS Application instance
in theResourceConfig
.ResourceConfig
ResourceConfig. addProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Add properties toResourceConfig
.(package private) static ResourceConfig
ResourceConfig. createRuntimeConfig(javax.ws.rs.core.Application application)
Create runtime configuration initialized from a given deploy-time JAX-RS/Jersey application configuration.ResourceConfig
ResourceConfig. files(boolean recursive, java.lang.String... files)
Adds array of file and directory names to scan for components.ResourceConfig
ResourceConfig. files(java.lang.String... files)
Adds array of file and directory names to scan for components.static ResourceConfig
ResourceConfig. forApplication(javax.ws.rs.core.Application application)
Returns aResourceConfig
instance for the supplied application.static ResourceConfig
ResourceConfig. forApplicationClass(java.lang.Class<? extends javax.ws.rs.core.Application> applicationClass)
Returns aResourceConfig
instance wrapping the application of the supplied class.static ResourceConfig
ResourceConfig. forApplicationClass(java.lang.Class<? extends javax.ws.rs.core.Application> applicationClass, java.util.Set<java.lang.Class<?>> defaultClasses)
Returns aResourceConfig
instance wrapping the application of the supplied class.ResourceConfig
ApplicationHandler. getConfiguration()
Get the application configuration.ResourceConfig
ServerBootstrapBag. getRuntimeConfig()
ResourceConfig
ResourceConfig. packages(boolean recursive, java.lang.String... packages)
Adds array of package names which will be used to scan for components.ResourceConfig
ResourceConfig. packages(java.lang.String... packages)
Adds array of package names which will be used to scan for components.ResourceConfig
ResourceConfig. property(java.lang.String name, java.lang.Object value)
ResourceConfig
ResourceConfig. register(java.lang.Class<?> componentClass)
ResourceConfig
ResourceConfig. register(java.lang.Class<?> componentClass, int bindingPriority)
ResourceConfig
ResourceConfig. register(java.lang.Class<?> componentClass, java.lang.Class<?>... contracts)
ResourceConfig
ResourceConfig. register(java.lang.Class<?> componentClass, java.util.Map<java.lang.Class<?>,java.lang.Integer> contracts)
ResourceConfig
ResourceConfig. register(java.lang.Object component)
ResourceConfig
ResourceConfig. register(java.lang.Object component, int bindingPriority)
ResourceConfig
ResourceConfig. register(java.lang.Object component, java.lang.Class<?>... contracts)
ResourceConfig
ResourceConfig. register(java.lang.Object component, java.util.Map<java.lang.Class<?>,java.lang.Integer> contracts)
ResourceConfig
ResourceConfig. registerClasses(java.lang.Class<?>... classes)
Register annotated JAX-RS resource, JAX-RS or Jersey contract provider or JAX-RS feature in theResourceConfig
.ResourceConfig
ResourceConfig. registerClasses(java.util.Set<java.lang.Class<?>> classes)
Register annotated JAX-RS resource, JAX-RS or Jersey contract provider or JAX-RS feature in theResourceConfig
.ResourceConfig
ResourceConfig. registerFinder(ResourceFinder resourceFinder)
Add aResourceFinder
toResourceConfig
.ResourceConfig
ResourceConfig. registerInstances(java.lang.Object... instances)
Register annotated JAX-RS resource, JAX-RS or Jersey contract provider, JAX-RS feature,Jersey Binder
instances (singletons) in theResourceConfig
.ResourceConfig
ResourceConfig. registerInstances(java.util.Set<java.lang.Object> instances)
Register annotated JAX-RS resource, JAX-RS or Jersey contract provider, JAX-RS featureJersey Binder
instances (singletons) in theResourceConfig
.ResourceConfig
ResourceConfig. registerResources(java.util.Set<Resource> resources)
Register new resource models in theResourceConfig
.ResourceConfig
ResourceConfig. registerResources(Resource... resources)
Register new programmatic resource models in theResourceConfig
.(package private) ResourceConfig
ResourceConfig. setApplication(javax.ws.rs.core.Application app)
This method is used by ApplicationHandler to set application instance to the resource config (should always be called on WrappingResourceConfig instance, never on plain instances of ResourceConfig unless we have a bug in the code).ResourceConfig
ResourceConfig. setApplicationName(java.lang.String applicationName)
Set the name of the application.ResourceConfig
ResourceConfig. setClassLoader(java.lang.ClassLoader classLoader)
SetClassLoader
which will be used for resource discovery.ResourceConfig
ResourceConfig. setProperties(java.util.Map<java.lang.String,?> properties)
Set new configuration properties replacing all previously set properties.Methods in org.glassfish.jersey.server with parameters of type ResourceConfig Modifier and Type Method Description private void
ResourceModelConfigurator. bindEnhancingResourceClasses(InjectionManager injectionManager, ServerBootstrapBag bootstrapBag, ResourceModel resourceModel, ResourceBag resourceBag, ResourceConfig runtimeConfig)
private void
ResourceModelConfigurator. bindProvidersAndResources(InjectionManager injectionManager, ServerBootstrapBag bootstrapBag, ComponentBag componentBag, java.util.Collection<java.lang.Class<?>> resourceClasses, java.util.Collection<java.lang.Object> resourceInstances, ResourceConfig runtimeConfig)
private ResourceModel
ResourceModelConfigurator. processResourceModel(java.util.Collection<ModelProcessor> modelProcessors, ResourceModel resourceModel, ResourceConfig runtimeConfig)
private static javax.ws.rs.core.Application
ResourceConfig. unwrapCustomRootApplication(ResourceConfig resourceConfig)
Constructors in org.glassfish.jersey.server with parameters of type ResourceConfig Constructor Description ResourceConfig(ResourceConfig original)
Create a defensive resource configuration copy initialized with a givenResourceConfig
.RuntimeConfig(ResourceConfig original)
-
Uses of ResourceConfig in org.glassfish.jersey.server.filter
Methods in org.glassfish.jersey.server.filter with parameters of type ResourceConfig Modifier and Type Method Description static void
EncodingFilter. enableFor(ResourceConfig rc, java.lang.Class<? extends ContentEncoder>... encoders)
Enables this filter along with the providedencoders
for the suppliedResourceConfig
.static void
HttpMethodOverrideFilter. enableFor(ResourceConfig rc, HttpMethodOverrideFilter.Source... sources)
Registers this filter into the passedResourceConfig
instance and configures it. -
Uses of ResourceConfig in org.glassfish.jersey.server.internal.monitoring
Fields in org.glassfish.jersey.server.internal.monitoring declared as ResourceConfig Modifier and Type Field Description private ResourceConfig
ApplicationEventImpl. resourceConfig
private ResourceConfig
ApplicationInfoImpl. resourceConfig
Methods in org.glassfish.jersey.server.internal.monitoring that return ResourceConfig Modifier and Type Method Description ResourceConfig
ApplicationEventImpl. getResourceConfig()
ResourceConfig
ApplicationInfoImpl. getResourceConfig()
Constructors in org.glassfish.jersey.server.internal.monitoring with parameters of type ResourceConfig Constructor Description ApplicationEventImpl(ApplicationEvent.Type type, ResourceConfig resourceConfig, java.util.Set<java.lang.Class<?>> providers, java.util.Set<java.lang.Class<?>> registeredClasses, java.util.Set<java.lang.Object> registeredInstances, ResourceModel resourceModel)
Create a new application event.ApplicationInfoImpl(ResourceConfig resourceConfig, java.util.Date startTime, java.util.Set<java.lang.Class<?>> registeredClasses, java.util.Set<java.lang.Object> registeredInstances, java.util.Set<java.lang.Class<?>> providers)
Create a new application statistics instance. -
Uses of ResourceConfig in org.glassfish.jersey.server.monitoring
Methods in org.glassfish.jersey.server.monitoring that return ResourceConfig Modifier and Type Method Description ResourceConfig
ApplicationEvent. getResourceConfig()
Get resource config associated with the application.ResourceConfig
ApplicationInfo. getResourceConfig()
Get the resource config. -
Uses of ResourceConfig in org.glassfish.jersey.server.spi
Methods in org.glassfish.jersey.server.spi that return ResourceConfig Modifier and Type Method Description ResourceConfig
Container. getConfiguration()
Return an immutable representation of the currentconfiguration
.Methods in org.glassfish.jersey.server.spi with parameters of type ResourceConfig Modifier and Type Method Description void
Container. reload(ResourceConfig configuration)
Reload the hosted Jersey application using a newconfiguration
. -
Uses of ResourceConfig in org.glassfish.jersey.servlet
Fields in org.glassfish.jersey.servlet declared as ResourceConfig Modifier and Type Field Description private ResourceConfig
ServletContainer. resourceConfig
Methods in org.glassfish.jersey.servlet that return ResourceConfig Modifier and Type Method Description private static ResourceConfig
WebComponent. createResourceConfig(WebConfig config)
Create aResourceConfig
instance from givenWebConfig
.ResourceConfig
ServletContainer. getConfiguration()
Methods in org.glassfish.jersey.servlet with parameters of type ResourceConfig Modifier and Type Method Description private void
WebComponent. configure(ResourceConfig resourceConfig, ServletContainerProvider[] allServletContainerProviders)
SPI/extension hook to configure ResourceConfig.void
ServletContainer. reload(ResourceConfig configuration)
Constructors in org.glassfish.jersey.servlet with parameters of type ResourceConfig Constructor Description ServletContainer(ResourceConfig resourceConfig)
Create Jersey Servlet container.WebComponent(WebConfig webConfig, ResourceConfig resourceConfig)
Create and initialize new web component instance. -
Uses of ResourceConfig in org.glassfish.jersey.servlet.internal
Methods in org.glassfish.jersey.servlet.internal that return ResourceConfig Modifier and Type Method Description static ResourceConfig
Utils. retrieve(javax.servlet.ServletContext context, java.lang.String configName)
Loadresource config
from givenservlet context
.Methods in org.glassfish.jersey.servlet.internal with parameters of type ResourceConfig Modifier and Type Method Description static void
Utils. store(ResourceConfig config, javax.servlet.ServletContext context, java.lang.String configName)
Storeresource config
as an attribute of givenservlet context
. -
Uses of ResourceConfig in org.glassfish.jersey.servlet.internal.spi
Methods in org.glassfish.jersey.servlet.internal.spi with parameters of type ResourceConfig Modifier and Type Method Description void
NoOpServletContainerProvider. configure(ResourceConfig resourceConfig)
void
ServletContainerProvider. configure(ResourceConfig resourceConfig)
This method is called for eachServletContainer
instance initialization, i.e. -
Uses of ResourceConfig in org.glassfish.jersey.simple
Methods in org.glassfish.jersey.simple that return ResourceConfig Modifier and Type Method Description ResourceConfig
SimpleContainer. getConfiguration()
Methods in org.glassfish.jersey.simple with parameters of type ResourceConfig Modifier and Type Method Description static SimpleServer
SimpleContainerFactory. create(java.net.URI address, javax.net.ssl.SSLContext context, ResourceConfig config)
Create aCloseable
that registers anContainer
that in turn manages all root resource and provider classes declared by the resource configuration.static SimpleServer
SimpleContainerFactory. create(java.net.URI address, javax.net.ssl.SSLContext context, ResourceConfig config, int count, int select)
Create aCloseable
that registers anContainer
that in turn manages all root resource and provider classes declared by the resource configuration.static SimpleServer
SimpleContainerFactory. create(java.net.URI address, javax.net.ssl.SSLContext context, ResourceConfig config, java.lang.Object parentContext, int count, int select)
Create aCloseable
that registers anContainer
that in turn manages all root resource and provider classes declared by the resource configuration.static SimpleServer
SimpleContainerFactory. create(java.net.URI address, ResourceConfig config)
Create aCloseable
that registers anContainer
that in turn manages all root resource and provider classes declared by the resource configuration.static SimpleServer
SimpleContainerFactory. create(java.net.URI address, ResourceConfig config, int count, int select)
Create aCloseable
that registers anContainer
that in turn manages all root resource and provider classes declared by the resource configuration.void
SimpleContainer. reload(ResourceConfig configuration)
-