uk.co.bigbeeconsultants.http.response

Status

final class Status extends AnyRef

Expresses an HTTP status line. Status is not a 'case class' although it behaves almost the same as if it were.

The difference is that equals only compares the status code, ignoring the message. Therefore, testing values using '==' will produce the obvious result. For example

val s: Status = ... if (s == Status.S200_OK) { // ... }

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Status
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Status(code: Int, message: String)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val category: Int

    The category is 1=informational, 2=success, 3=redirect, 4=client error, 5=server error.

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. val code: Int

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(obj: Any): Boolean

    Definition Classes
    Status → AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    Status → AnyRef → Any
  15. def isBodyAllowed: Boolean

    Specifies whether a body is allowed in the response to which this status is attached.

    Specifies whether a body is allowed in the response to which this status is attached.

    returns

    true if the body may possibly have content; false if the body cannot have content.

  16. def isClientError: Boolean

    True if this instance is a 4xx client error code.

  17. def isInformational: Boolean

    True if this instance is a 1xx informational code.

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def isRedirection: Boolean

    True if this instance is a 3xx redirection code.

  20. def isServerError: Boolean

    True if this instance is a 5xx server error code.

  21. def isSuccess: Boolean

    True if this instance is a 2xx status code.

  22. val message: String

  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. lazy val toString: String

    Definition Classes
    Status → AnyRef → Any
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped