Class StatusCode

    • Constructor Summary

      Constructors 
      Constructor Description
      StatusCode()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract boolean allowsEntity()
      Returns if a response with this status-code is allowed to be accompanied with a non-empty entity.
      abstract java.lang.String defaultMessage()
      Returns the default message to be included as the content of an Http response with this status-code.
      static StatusCode int2StatusCode​(int code)  
      abstract int intValue()
      Returns the numeric code of this status code.
      abstract boolean isFailure()
      Returns if the status-code represents failure.
      abstract boolean isRedirection()
      Returns if the status-code is a redirection status code.
      abstract boolean isSuccess()
      Returns if the status-code represents success.
      abstract java.lang.String reason()
      Returns the reason message for this status code.
      java.lang.String value()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StatusCode

        public StatusCode()
    • Method Detail

      • int2StatusCode

        public static StatusCode int2StatusCode​(int code)
      • intValue

        public abstract int intValue()
        Description copied from class: StatusCode
        Returns the numeric code of this status code.
        Specified by:
        intValue in class StatusCode
      • reason

        public abstract java.lang.String reason()
        Description copied from class: StatusCode
        Returns the reason message for this status code.
        Specified by:
        reason in class StatusCode
      • defaultMessage

        public abstract java.lang.String defaultMessage()
        Description copied from class: StatusCode
        Returns the default message to be included as the content of an Http response with this status-code.
        Specified by:
        defaultMessage in class StatusCode
      • isSuccess

        public abstract boolean isSuccess()
        Description copied from class: StatusCode
        Returns if the status-code represents success.
        Specified by:
        isSuccess in class StatusCode
      • isFailure

        public abstract boolean isFailure()
        Description copied from class: StatusCode
        Returns if the status-code represents failure.
        Specified by:
        isFailure in class StatusCode
      • isRedirection

        public abstract boolean isRedirection()
        Description copied from class: StatusCode
        Returns if the status-code is a redirection status code.
        Specified by:
        isRedirection in class StatusCode
      • allowsEntity

        public abstract boolean allowsEntity()
        Description copied from class: StatusCode
        Returns if a response with this status-code is allowed to be accompanied with a non-empty entity.
        Specified by:
        allowsEntity in class StatusCode