Class SimpleHttpCodeStatusMapper

java.lang.Object
org.springframework.boot.actuate.health.SimpleHttpCodeStatusMapper
All Implemented Interfaces:
HttpCodeStatusMapper

public class SimpleHttpCodeStatusMapper extends Object implements HttpCodeStatusMapper
Simple HttpCodeStatusMapper backed by map of status code to HTTP status code.
Since:
2.2.0
Author:
Stephane Nicoll, Phillip Webb
  • Constructor Details

    • SimpleHttpCodeStatusMapper

      public SimpleHttpCodeStatusMapper()
      Create a new SimpleHttpCodeStatusMapper instance using default mappings.
    • SimpleHttpCodeStatusMapper

      public SimpleHttpCodeStatusMapper(Map<String,Integer> mappings)
      Create a new SimpleHttpCodeStatusMapper with the specified mappings.
      Parameters:
      mappings - the mappings to use or null to use the default mappings
  • Method Details