HttpCodeStatusMapper
or
SimpleHttpCodeStatusMapper
@Deprecated public class HealthStatusHttpMapper extends Object
Status
to an HTTP status code.Constructor and Description |
---|
HealthStatusHttpMapper()
Deprecated.
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addStatusMapping(Map<String,Integer> statusMapping)
Deprecated.
Add specific status mappings to the existing set.
|
void |
addStatusMapping(Status status,
Integer httpStatus)
Deprecated.
Add a status mapping to the existing set.
|
void |
addStatusMapping(String statusCode,
Integer httpStatus)
Deprecated.
Add a status mapping to the existing set.
|
Map<String,Integer> |
getStatusMapping()
Deprecated.
Return an immutable view of the status mapping.
|
int |
mapStatus(Status status)
Deprecated.
Map the specified
Status to an HTTP status code. |
void |
setStatusMapping(Map<String,Integer> statusMapping)
Deprecated.
Set specific status mappings.
|
public HealthStatusHttpMapper()
public void setStatusMapping(Map<String,Integer> statusMapping)
statusMapping
- a map of health status code to HTTP status codepublic void addStatusMapping(Map<String,Integer> statusMapping)
statusMapping
- a map of health status code to HTTP status codepublic void addStatusMapping(Status status, Integer httpStatus)
status
- the status to maphttpStatus
- the http statuspublic void addStatusMapping(String statusCode, Integer httpStatus)
statusCode
- the status code to maphttpStatus
- the http statuspublic Map<String,Integer> getStatusMapping()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.