Class StatusCode

    • Constructor Summary

      Constructors 
      Constructor Description
      StatusCode()  
    • Method Summary

      All Methods Instance Methods Abstract 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.
      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.
      • 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

      • intValue

        public abstract int intValue()
        Returns the numeric code of this status code.
      • reason

        public abstract java.lang.String reason()
        Returns the reason message for this status code.
      • defaultMessage

        public abstract java.lang.String defaultMessage()
        Returns the default message to be included as the content of an Http response with this status-code.
      • isSuccess

        public abstract boolean isSuccess()
        Returns if the status-code represents success.
      • isFailure

        public abstract boolean isFailure()
        Returns if the status-code represents failure.
      • allowsEntity

        public abstract boolean allowsEntity()
        Returns if a response with this status-code is allowed to be accompanied with a non-empty entity.
      • isRedirection

        public abstract boolean isRedirection()
        Returns if the status-code is a redirection status code.