public class ServletHealthResponderFactory extends Object implements HealthResponderFactory
HealthResponderFactory
, to respond to health check requests.Constructor and Description |
---|
ServletHealthResponderFactory() |
Modifier and Type | Method and Description |
---|---|
void |
configure(String name,
Collection<String> healthCheckUrlPaths,
HealthResponseProvider healthResponseProvider,
HealthEnvironment health,
JerseyEnvironment jersey,
ServletEnvironment servlets,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Configures a health responder for responding to health check requests (e.g.
|
String |
getCacheControlValue() |
boolean |
isCacheControlEnabled() |
void |
setCacheControlEnabled(boolean cacheControlEnabled) |
void |
setCacheControlValue(String cacheControlValue) |
public boolean isCacheControlEnabled()
public void setCacheControlEnabled(boolean cacheControlEnabled)
public String getCacheControlValue()
public void setCacheControlValue(String cacheControlValue)
public void configure(String name, Collection<String> healthCheckUrlPaths, HealthResponseProvider healthResponseProvider, HealthEnvironment health, JerseyEnvironment jersey, ServletEnvironment servlets, com.fasterxml.jackson.databind.ObjectMapper mapper)
HealthResponderFactory
configure
in interface HealthResponderFactory
name
- The name of the application.healthCheckUrlPaths
- The paths to expose a health check on.healthResponseProvider
- A provider of responses to respond to requests with.health
- The health environment.jersey
- The Jersey environment.servlets
- The servlet environment.mapper
- A Jackson object mapper to allow writing JSON responses (if needed).Copyright © 2011. All rights reserved.