Class BootstrapRestStatusMapper

java.lang.Object
com.svenruppert.jsentinel.rest.BootstrapRestStatusMapper

public final class BootstrapRestStatusMapper extends Object
Maps an InitialAdminCreationResult to an HTTP status code and a stable error code suitable for inclusion in a JSON response body. Does not serialize the body itself — that stays with the application so this module remains framework-light.
  • Constructor Details

    • BootstrapRestStatusMapper

      public BootstrapRestStatusMapper()
  • Method Details

    • statusFor

      public int statusFor(com.svenruppert.jsentinel.bootstrap.InitialAdminCreationResult result)
    • errorCodeFor

      public String errorCodeFor(com.svenruppert.jsentinel.bootstrap.InitialAdminCreationResult result)