Package io.dropwizard.jersey
Class DropwizardResourceConfig
- java.lang.Object
-
- javax.ws.rs.core.Application
-
- org.glassfish.jersey.server.ResourceConfig
-
- io.dropwizard.jersey.DropwizardResourceConfig
-
- All Implemented Interfaces:
javax.ws.rs.core.Configurable<org.glassfish.jersey.server.ResourceConfig>,javax.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 classDropwizardResourceConfig.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 DropwizardResourceConfigforTesting()Build aDropwizardResourceConfigwhich makes Jersey Test run on a random port, also seeorg.glassfish.jersey.test.TestProperties#CONTAINER_PORT.static DropwizardResourceConfigforTesting(@Nullable com.codahale.metrics.MetricRegistry metricRegistry)Build aDropwizardResourceConfigwhich makes Jersey Test run on a random port, also seeorg.glassfish.jersey.test.TestProperties#CONTAINER_PORT.StringgetContextPath()StringgetEndpointsInfo()StringgetUrlPattern()org.glassfish.jersey.server.ResourceConfigregister(Object component)voidsetContextPath(String contextPath)voidsetUrlPattern(String urlPattern)-
Methods inherited from class org.glassfish.jersey.server.ResourceConfig
addProperties, files, files, forApplication, forApplicationClass, forApplicationClass, getApplication, getApplicationName, 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 aDropwizardResourceConfigwhich 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 aDropwizardResourceConfigwhich 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:
registerin interfacejavax.ws.rs.core.Configurable<org.glassfish.jersey.server.ResourceConfig>- Overrides:
registerin classorg.glassfish.jersey.server.ResourceConfig
-
-