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
    Modifier and Type
    Field
    Description
    static final String
    Defines the media type for JSON with UTF-8 encoding.
    static final String
    Defines the media type for JSON Merge Patch payloads.
    static final String
    Defines the media type for ZIP archive payloads (e.g.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs the ResourceInitializer and 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • APPLICATION_JSON

      public static final String APPLICATION_JSON
      Defines the media type for JSON with UTF-8 encoding.
      See Also:
    • APPLICATION_MERGE_PATCH_JSON

      public static final String APPLICATION_MERGE_PATCH_JSON
      Defines the media type for JSON Merge Patch payloads.
      See Also:
    • APPLICATION_ZIP

      public static final String APPLICATION_ZIP
      Defines the media type for ZIP archive payloads (e.g. System Dump).
      See Also:
  • Constructor Details

    • ResourceInitializer

      public ResourceInitializer()
      Constructs the ResourceInitializer and registers the REST resources packages.