Strict

akka.http.scaladsl.model.ws.TextMessage.Strict
final case class Strict(text: String) extends TextMessage

A strict TextMessage that contains the complete data as a String.

Attributes

Source
Message.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait TextMessage
trait Message
class TextMessage
class Message
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def getStrictText: String

Java API

Java API

Attributes

Definition Classes
Source
Message.scala
override def isStrict: Boolean

Is this message a strict one?

Is this message a strict one?

Attributes

Definition Classes
Source
Message.scala

The contents of this message as a stream.

The contents of this message as a stream.

Attributes

Source
Message.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
Message.scala

Inherited methods

Returns this BinaryMessage if it is a binary message, throws otherwise.

Returns this BinaryMessage if it is a binary message, throws otherwise.

Attributes

Inherited from:
TextMessage
Source
Message.scala
override def asScala: TextMessage

Attributes

Definition Classes
Inherited from:
TextMessage
Source
Message.scala

Returns this TextMessage if it is a text message, throws otherwise.

Returns this TextMessage if it is a text message, throws otherwise.

Attributes

Inherited from:
TextMessage
Source
Message.scala
override def getStreamedText: Source[String, _]

Java API

Java API

Attributes

Definition Classes
Inherited from:
TextMessage
Source
Message.scala

Is this message a text message? If true, asTextMessage will return this text message, if false, asBinaryMessage will return this binary message.

Is this message a text message? If true, asTextMessage will return this text message, if false, asBinaryMessage will return this binary message.

Attributes

Inherited from:
TextMessage
Source
Message.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
override def toStrict(timeoutMillis: Long, materializer: Materializer): CompletionStage[Strict]

Attributes

Definition Classes
Inherited from:
TextMessage
Source
Message.scala
def toStrict(timeout: FiniteDuration)(implicit fm: Materializer): Future[Strict]

Collects all possible parts and returns a potentially future Strict Message for easier processing. The Future is failed with an TimeoutException if the stream isn't completed after the given timeout.

Collects all possible parts and returns a potentially future Strict Message for easier processing. The Future is failed with an TimeoutException if the stream isn't completed after the given timeout.

Attributes

Inherited from:
TextMessage
Source
Message.scala