Class ResourceInitializer
java.lang.Object
jakarta.ws.rs.core.Application
org.glassfish.jersey.server.ResourceConfig
org.gcube.informationsystem.resourceregistry.ResourceInitializer
- All Implemented Interfaces:
jakarta.ws.rs.core.Configurable<org.glassfish.jersey.server.ResourceConfig>,jakarta.ws.rs.core.Configuration,org.glassfish.jersey.ExtendedConfig,org.glassfish.jersey.server.ServerConfig
@ApplicationPath("/")
public class ResourceInitializer
extends org.glassfish.jersey.server.ResourceConfig
Configures the JAX-RS application for the Resource Registry service.
Registers the packages containing the REST endpoints and is managed by
ResourceRegistryManager.- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs theResourceInitializerand registers the REST resources packages. -
Method Summary
Methods inherited from class org.glassfish.jersey.server.ResourceConfig
addProperties, files, files, forApplication, forApplicationClass, forApplicationClass, getApplication, getApplicationName, getApplicationPath, getClasses, getClassLoader, getConfiguration, getContracts, getInstances, getProperties, getProperty, getPropertyNames, getResources, getRuntimeType, getSingletons, hasProperty, isEnabled, isEnabled, isProperty, isRegistered, isRegistered, packages, packages, packages, property, register, register, register, register, register, register, register, register, registerClasses, registerClasses, registerFinder, registerInstances, registerInstances, registerResources, registerResources, setApplicationName, setClassLoader, setProperties
-
Field Details
-
APPLICATION_JSON
Defines the media type for JSON with UTF-8 encoding.- See Also:
-
APPLICATION_MERGE_PATCH_JSON
Defines the media type for JSON Merge Patch payloads.- See Also:
-
APPLICATION_ZIP
Defines the media type for ZIP archive payloads (e.g. System Dump).- See Also:
-
-
Constructor Details
-
ResourceInitializer
public ResourceInitializer()Constructs theResourceInitializerand registers the REST resources packages.
-