Class ContainerResources

java.lang.Object
jakarta.ws.rs.core.Application
org.glassfish.jersey.server.ResourceConfig
org.veupathdb.lib.container.jaxrs.server.ContainerResources
All Implemented Interfaces:
jakarta.ws.rs.core.Configurable<org.glassfish.jersey.server.ResourceConfig>, jakarta.ws.rs.core.Configuration, org.glassfish.jersey.ApplicationSupplier, org.glassfish.jersey.ExtendedConfig, org.glassfish.jersey.server.ServerConfig

@ApplicationPath("/") public abstract class ContainerResources extends org.glassfish.jersey.server.ResourceConfig
Container Meta Resources

Universal services that should be available in all containerized services.

This class is intended for framework internal use and is subject to change with framework updates.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Enable OAuth authentication checks for annotated resources.
    void
    Enable cross-origin request allowance headers.
    void
    Enable Jersey trace response headers.
    protected abstract Object[]
    Returns an array of JaxRS endpoints, providers, and contexts.

    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

    • ContainerResources

      public ContainerResources(Options opts)
  • Method Details

    • enableCors

      public void enableCors()
      Enable cross-origin request allowance headers.
    • enableAuth

      public void enableAuth()
      Enable OAuth authentication checks for annotated resources.

      Enabling this feature requires that the OAuth config options are set. If those options are not provided the service will fail to start up.

    • enableJerseyTrace

      public void enableJerseyTrace()
      Enable Jersey trace response headers.
    • resources

      protected abstract Object[] resources()
      Returns an array of JaxRS endpoints, providers, and contexts.

      Entries in the array can be either classes or instances.