Class Health


  • public class Health
    extends java.lang.Object
    Represents the "Health", by holding a list of Responses. It allows accessing the responses and also provides some helper methods (e.g. to get the worst response).
    Author:
    mvrueden
    • Constructor Detail

      • Health

        public Health()
    • Method Detail

      • isSuccess

        public boolean isSuccess()
      • getWorst

        public java.util.Optional<Response> getWorst()
      • add

        public void add​(Response response)
      • setError

        public void setError​(java.lang.String errorMessage)
      • getErrorMessage

        public java.lang.String getErrorMessage()
      • getResponses

        public java.util.List<Response> getResponses()