public class DropwizardResourceConfig
extends org.glassfish.jersey.server.ResourceConfig
Modifier and Type | Class and Description |
---|---|
static class |
DropwizardResourceConfig.SpecificBinder |
Constructor and Description |
---|
DropwizardResourceConfig() |
DropwizardResourceConfig(com.codahale.metrics.MetricRegistry metricRegistry) |
Modifier and Type | Method and Description |
---|---|
static DropwizardResourceConfig |
forTesting()
Build a
DropwizardResourceConfig which makes Jersey Test run on a random port,
also see org.glassfish.jersey.test.TestProperties#CONTAINER_PORT . |
static DropwizardResourceConfig |
forTesting(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 . |
String |
getContextPath() |
String |
getEndpointsInfo() |
String |
getUrlPattern() |
org.glassfish.jersey.server.ResourceConfig |
register(Object component) |
void |
setContextPath(String contextPath) |
void |
setUrlPattern(String urlPattern) |
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, property, register, register, register, register, register, register, register, registerClasses, registerClasses, registerFinder, registerInstances, registerInstances, registerResources, registerResources, setApplicationName, setClassLoader, setProperties
public DropwizardResourceConfig()
public DropwizardResourceConfig(@Nullable com.codahale.metrics.MetricRegistry metricRegistry)
public static DropwizardResourceConfig forTesting()
DropwizardResourceConfig
which makes Jersey Test run on a random port,
also see org.glassfish.jersey.test.TestProperties#CONTAINER_PORT
.public static DropwizardResourceConfig forTesting(@Nullable com.codahale.metrics.MetricRegistry metricRegistry)
DropwizardResourceConfig
which makes Jersey Test run on a random port,
also see org.glassfish.jersey.test.TestProperties#CONTAINER_PORT
.public String getUrlPattern()
public void setUrlPattern(String urlPattern)
public String getContextPath()
public void setContextPath(String contextPath)
public String getEndpointsInfo()
public org.glassfish.jersey.server.ResourceConfig register(Object component)
register
in interface javax.ws.rs.core.Configurable<org.glassfish.jersey.server.ResourceConfig>
register
in class org.glassfish.jersey.server.ResourceConfig
Copyright © 2019. All rights reserved.