Class Application

java.lang.Object
jakarta.ws.rs.core.Application
org.glassfish.jersey.server.ResourceConfig
io.goobi.viewer.api.rest.v1.Application
All Implemented Interfaces:
Configurable<org.glassfish.jersey.server.ResourceConfig>, Configuration, org.glassfish.jersey.ApplicationSupplier, org.glassfish.jersey.ExtendedConfig, org.glassfish.jersey.server.ServerConfig

@ApplicationPath("/api/v1") public class Application extends org.glassfish.jersey.server.ResourceConfig
Jersey ResourceConfig that bootstraps the JAX-RS v1 API, registering resources, providers, filters, and dependency bindings.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Application(ServletConfig servletConfig)
    Creates a new ViewerApplication instance.
    Application(org.glassfish.jersey.internal.inject.AbstractBinder binder)
    Constructor with custom injection binder for tests.
  • 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
  • Constructor Details

    • Application

      public Application(@Context ServletConfig servletConfig)
      Creates a new ViewerApplication instance.
      Parameters:
      servletConfig - servlet configuration for dependency injection setup
    • Application

      public Application(org.glassfish.jersey.internal.inject.AbstractBinder binder)
      Constructor with custom injection binder for tests.
      Parameters:
      binder - custom injection binder used in tests