Class DropwizardResourceConfig

  • 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

    public class DropwizardResourceConfig
    extends org.glassfish.jersey.server.ResourceConfig
    • Constructor Detail

      • DropwizardResourceConfig

        public DropwizardResourceConfig()
      • DropwizardResourceConfig

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

      • 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