public class DefaultHealthServletFactory extends Object implements HealthServletFactory
HealthServletFactory, which allows for configuration of the response.| Constructor and Description |
|---|
DefaultHealthServletFactory() |
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.http.HttpServlet |
build(HealthStatusChecker healthStatusChecker)
Build a servlet for responding to health check requests (e.g.
|
String |
getCacheControlValue() |
String |
getContentType() |
String |
getHealthyValue() |
String |
getUnhealthyValue() |
boolean |
isCacheControlEnabled() |
void |
setCacheControlEnabled(boolean cacheControlEnabled) |
void |
setCacheControlValue(String cacheControlValue) |
void |
setContentType(String contentType) |
void |
setHealthyValue(String healthyValue) |
void |
setUnhealthyValue(String unhealthyValue) |
public boolean isCacheControlEnabled()
public void setCacheControlEnabled(boolean cacheControlEnabled)
public String getCacheControlValue()
public void setCacheControlValue(String cacheControlValue)
public String getContentType()
public void setContentType(String contentType)
public String getHealthyValue()
public void setHealthyValue(String healthyValue)
public String getUnhealthyValue()
public void setUnhealthyValue(String unhealthyValue)
public javax.servlet.http.HttpServlet build(HealthStatusChecker healthStatusChecker)
HealthServletFactorybuild in interface HealthServletFactoryhealthStatusChecker - an interface that exposes the ability to check current status of health.HttpServlet that responds to health check requestsCopyright © 2011. All rights reserved.