Class DropwizardResourceConfig

java.lang.Object
jakarta.ws.rs.core.Application
org.glassfish.jersey.server.ResourceConfig
io.dropwizard.jersey.DropwizardResourceConfig
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

public class DropwizardResourceConfig extends org.glassfish.jersey.server.ResourceConfig
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    DropwizardResourceConfig(@Nullable com.codahale.metrics.MetricRegistry metricRegistry)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Build a DropwizardResourceConfig which makes Jersey Test run on a random port, also see org.glassfish.jersey.test.TestProperties#CONTAINER_PORT.
    forTesting(@Nullable com.codahale.metrics.MetricRegistry metricRegistry)
    Build a DropwizardResourceConfig which makes Jersey Test run on a random port, also see org.glassfish.jersey.test.TestProperties#CONTAINER_PORT.
     
     
     
    org.glassfish.jersey.server.ResourceConfig
    register(Object component)
     
    void
    setContextPath(String contextPath)
     
    void
    setUrlPattern(String urlPattern)
     

    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, 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

    • DropwizardResourceConfig

      public DropwizardResourceConfig()
    • DropwizardResourceConfig

      public DropwizardResourceConfig(@Nullable com.codahale.metrics.MetricRegistry metricRegistry)
  • Method Details

    • forTesting

      public static DropwizardResourceConfig forTesting()
      Build a DropwizardResourceConfig which makes Jersey Test run on a random port, also see org.glassfish.jersey.test.TestProperties#CONTAINER_PORT.
      Since:
      2.0
    • forTesting

      public static DropwizardResourceConfig forTesting(@Nullable com.codahale.metrics.MetricRegistry metricRegistry)
      Build a DropwizardResourceConfig which makes Jersey Test run on a random port, also see org.glassfish.jersey.test.TestProperties#CONTAINER_PORT.
      Since:
      2.0
    • getUrlPattern

      public String getUrlPattern()
    • setUrlPattern

      public void setUrlPattern(String urlPattern)
    • getContextPath

      public String getContextPath()
      Since:
      2.0
    • setContextPath

      public void setContextPath(String contextPath)
    • getEndpointsInfo

      public String getEndpointsInfo()
      Since:
      2.0
    • register

      public org.glassfish.jersey.server.ResourceConfig register(Object component)
      Specified by:
      register in interface jakarta.ws.rs.core.Configurable<org.glassfish.jersey.server.ResourceConfig>
      Overrides:
      register in class org.glassfish.jersey.server.ResourceConfig