public class HealthMvcEndpoint extends EndpointMvcAdapter
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.
|
Object |
invoke() |
void |
setStatusMapping(Map<String,HttpStatus> statusMapping)
Set specific status mappings.
|
getDelegate, getEndpointType, getPath, isSensitivepublic 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 Object invoke()
invoke in class EndpointMvcAdapterCopyright © 2015 Pivotal Software, Inc.. All rights reserved.