Package io.dropwizard.jersey
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.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
DropwizardResourceConfig.SpecificBinder
-
Constructor Summary
Constructors Constructor Description DropwizardResourceConfig()
DropwizardResourceConfig(@Nullable com.codahale.metrics.MetricRegistry metricRegistry)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DropwizardResourceConfig
forTesting()
Build aDropwizardResourceConfig
which makes Jersey Test run on a random port, also seeorg.glassfish.jersey.test.TestProperties#CONTAINER_PORT
.static DropwizardResourceConfig
forTesting(@Nullable com.codahale.metrics.MetricRegistry metricRegistry)
Build aDropwizardResourceConfig
which makes Jersey Test run on a random port, also seeorg.glassfish.jersey.test.TestProperties#CONTAINER_PORT
.String
getContextPath()
String
getEndpointsInfo()
String
getUrlPattern()
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, 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
-
-
-
-
Method Detail
-
forTesting
public static DropwizardResourceConfig forTesting()
Build aDropwizardResourceConfig
which makes Jersey Test run on a random port, also seeorg.glassfish.jersey.test.TestProperties#CONTAINER_PORT
.- Since:
- 2.0
-
forTesting
public static DropwizardResourceConfig forTesting(@Nullable com.codahale.metrics.MetricRegistry metricRegistry)
Build aDropwizardResourceConfig
which makes Jersey Test run on a random port, also seeorg.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 interfacejakarta.ws.rs.core.Configurable<org.glassfish.jersey.server.ResourceConfig>
- Overrides:
register
in classorg.glassfish.jersey.server.ResourceConfig
-
-