org.http4s.blaze.http.websocket

WebSocketDecoder

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: 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. def bufferToFrame(arg0: ByteBuffer): WebSocketFrame

    Definition Classes
    FrameTranscoder
    Annotations
    @throws( classOf[java.net.ProtocolException] ) @throws( ... )
  8. 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( ... )
  9. final def channelRead(size: Int, timeout: Duration): Future[ByteBuffer]

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

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

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

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

    Definition Classes
    Tail
  14. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    Any
  27. final val logger: Logger

    Attributes
    protected
    Definition Classes
    Stage
  28. val maxBufferSize: Int

    Definition Classes
    WebSocketDecoder → ByteToObjectStage
  29. 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( ... )
  30. val name: String

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    Head
  43. def stageShutdown(): Unit

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

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

    Definition Classes
    AnyRef
  46. def toString(): String

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

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

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

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

    Definition Classes
    ByteToObjectStage → Head
  51. 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