org.http4s.blaze.http.websocket

WebSocketDecoder

Related Doc: package websocket

class WebSocketDecoder extends FrameTranscoder with ByteToObjectStage[WebSocketFrame]

Linear Supertypes
ByteToObjectStage[WebSocketFrame], MidStage[ByteBuffer, WebSocketFrame], Head[WebSocketFrame], Tail[ByteBuffer], Stage, FrameTranscoder, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WebSocketDecoder
  2. ByteToObjectStage
  3. MidStage
  4. Head
  5. Tail
  6. Stage
  7. FrameTranscoder
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WebSocketDecoder(isClient: Boolean, maxBufferSize: Int = 0)

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def bufferToFrame(arg0: ByteBuffer): WebSocketFrame

    Definition Classes
    FrameTranscoder
    Annotations
    @throws( classOf[java.net.ProtocolException] ) @throws( ... )
  6. def bufferToMessage(in: ByteBuffer): Option[WebSocketFrame]

    Method that decodes ByteBuffers to objects.

    Method that decodes ByteBuffers to objects. None reflects not enough data to decode a message Any unused data in the ByteBuffer will be recycled and available for the next read

    in

    ByteBuffer of immediately available data

    returns

    optional message if enough data was available

    Definition Classes
    WebSocketDecoder → ByteToObjectStage
    Annotations
    @throws( ... )
  7. def channelRead(size: Int, timeout: Duration): Future[ByteBuffer]

    Definition Classes
    Tail
  8. final def channelWrite(data: Seq[ByteBuffer], timeout: Duration): Future[Unit]

    Definition Classes
    Tail
  9. def channelWrite(data: Seq[ByteBuffer]): Future[Unit]

    Definition Classes
    Tail
  10. final def channelWrite(data: ByteBuffer, timeout: Duration): Future[Unit]

    Definition Classes
    Tail
  11. def channelWrite(data: ByteBuffer): Future[Unit]

    Definition Classes
    Tail
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def findInboundStage[C <: Stage](clazz: Class[C]): Option[C]

    Definition Classes
    Head
  17. final def findInboundStage(name: String): Option[Stage]

    Definition Classes
    Head
  18. final def findOutboundStage[C <: Stage](clazz: Class[C]): Option[C]

    Definition Classes
    Tail
  19. final def findOutboundStage(name: String): Option[Stage]

    Definition Classes
    Tail
  20. def frameToBuffer(arg0: WebSocketFrame): Array[ByteBuffer]

    Definition Classes
    FrameTranscoder
    Annotations
    @throws( ... )
  21. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  23. def inboundCommand(cmd: InboundCommand): Unit

    Definition Classes
    Head → Stage
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. final val logger: Logger

    Attributes
    protected
    Definition Classes
    Stage
  26. val maxBufferSize: Int

    Definition Classes
    WebSocketDecoder → ByteToObjectStage
  27. def messageToBuffer(in: WebSocketFrame): Seq[ByteBuffer]

    Encode objects to buffers

    Encode objects to buffers

    in

    object to decode

    returns

    sequence of ByteBuffers to pass to the head

    Definition Classes
    WebSocketDecoder → ByteToObjectStage
    Annotations
    @throws( ... )
  28. val name: String

    Definition Classes
    WebSocketDecoder → Stage
  29. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  32. def outboundCommand(cmd: OutboundCommand): Unit

    Definition Classes
    MidStage → Head
  33. def readRequest(size: Int): Future[WebSocketFrame]

    Definition Classes
    ByteToObjectStage → Head
  34. final def removeStage(implicit ev: =:=[MidStage[ByteBuffer, WebSocketFrame], MidStage[ByteBuffer, ByteBuffer]]): WebSocketDecoder.this.type

    Definition Classes
    MidStage
  35. final def replaceInline(stage: MidStage[ByteBuffer, WebSocketFrame]): WebSocketDecoder.this.type

    Definition Classes
    MidStage
  36. final def replaceInline(leafBuilder: LeafBuilder[ByteBuffer], startup: Boolean): WebSocketDecoder.this.type

    Definition Classes
    Tail
  37. final def replaceNext(stage: LeafBuilder[WebSocketFrame]): Tail[WebSocketFrame]

    Definition Classes
    MidStage
  38. final def sendInboundCommand(cmd: InboundCommand): Unit

    Definition Classes
    Head
  39. final def sendOutboundCommand(cmd: OutboundCommand): Unit

    Definition Classes
    Tail
  40. final def spliceAfter(stage: MidStage[WebSocketFrame, WebSocketFrame]): stage.type

    Definition Classes
    Head
  41. def stageShutdown(): Unit

    Attributes
    protected
    Definition Classes
    Stage
  42. def stageStartup(): Unit

    Attributes
    protected
    Definition Classes
    Stage
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  44. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. def writeRequest(data: WebSocketFrame): Future[Unit]

    Definition Classes
    ByteToObjectStage → Head
  49. def writeRequest(data: Seq[WebSocketFrame]): Future[Unit]

    Definition Classes
    ByteToObjectStage → Head

Inherited from ByteToObjectStage[WebSocketFrame]

Inherited from MidStage[ByteBuffer, WebSocketFrame]

Inherited from Head[WebSocketFrame]

Inherited from Tail[ByteBuffer]

Inherited from Stage

Inherited from FrameTranscoder

Inherited from AnyRef

Inherited from Any

Ungrouped