public class HealthMvcEndpoint extends Object implements MvcEndpoint
HealthEndpoint as an MvcEndpoint.| Constructor and Description |
|---|
HealthMvcEndpoint(HealthEndpoint delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatusMapping(Map<String,HttpStatus> statusMapping)
Add specfic status mappings to the existing set.
|
void |
addStatusMapping(Status status,
HttpStatus httpStatus)
Add a status mapping to the existing set.
|
void |
addStatusMapping(String statusCode,
HttpStatus httpStatus)
Add a status mapping to the existing set.
|
Class<? extends Endpoint> |
getEndpointType()
Return the type of
Endpoint exposed, or null if this
MvcEndpoint exposes information that cannot be represented as a traditional
Endpoint. |
String |
getPath()
Return the MVC path of the endpoint.
|
Object |
invoke(Principal principal) |
boolean |
isSensitive()
Return if the endpoint exposes sensitive information.
|
void |
setStatusMapping(Map<String,HttpStatus> statusMapping)
Set specific status mappings.
|
public HealthMvcEndpoint(HealthEndpoint delegate)
public void setStatusMapping(Map<String,HttpStatus> statusMapping)
statusMapping - a map of status code to HttpStatuspublic void addStatusMapping(Map<String,HttpStatus> statusMapping)
statusMapping - a map of status code to HttpStatuspublic void addStatusMapping(Status status, HttpStatus httpStatus)
status - the status to maphttpStatus - the http statuspublic void addStatusMapping(String statusCode, HttpStatus httpStatus)
statusCode - the status code to maphttpStatus - the http statuspublic String getPath()
MvcEndpointgetPath in interface MvcEndpointpublic boolean isSensitive()
MvcEndpointisSensitive in interface MvcEndpointpublic Class<? extends Endpoint> getEndpointType()
MvcEndpointEndpoint exposed, or null if this
MvcEndpoint exposes information that cannot be represented as a traditional
Endpoint.getEndpointType in interface MvcEndpointCopyright © 2014 Pivotal Software, Inc.. All rights reserved.