Class BootstrapRestStatusMapper
java.lang.Object
com.svenruppert.jsentinel.rest.BootstrapRestStatusMapper
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionerrorCodeFor(com.svenruppert.jsentinel.bootstrap.InitialAdminCreationResult result) intstatusFor(com.svenruppert.jsentinel.bootstrap.InitialAdminCreationResult result)
-
Constructor Details
-
BootstrapRestStatusMapper
public BootstrapRestStatusMapper()
-
-
Method Details
-
statusFor
public int statusFor(com.svenruppert.jsentinel.bootstrap.InitialAdminCreationResult result) -
errorCodeFor
-