Class RequestStatus

  • All Implemented Interfaces:
    ErrorsHolder, Value<java.lang.Boolean>

    public abstract class RequestStatus
    extends java.lang.Object
    implements Value<java.lang.Boolean>, ErrorsHolder
    Generic response to be returned when an endpoint returns no content (i.e. 204 response code).

    When the response code is valid the `value` parameter will be set to true while a non-valid response has the `value` set to false along with any potential `error` objects returned from Jenkins.

    • Constructor Summary

      Constructors 
      Constructor Description
      RequestStatus()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static RequestStatus create​(java.lang.Boolean value, java.util.List<Error> errors)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.cdancy.jenkins.rest.domain.common.Value

        value
    • Constructor Detail

      • RequestStatus

        public RequestStatus()
    • Method Detail

      • create

        public static RequestStatus create​(@Nullable
                                           java.lang.Boolean value,
                                           java.util.List<Error> errors)