Class

org.http4s.blaze.http.websocket

WebSocketDecoder

Related Doc: package websocket

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Value Members

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

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

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

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

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

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

    Permalink

    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]

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

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

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

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

    Permalink
    Definition Classes
    Tail
  12. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  25. final val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Stage
  26. val maxBufferSize: Int

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

    Permalink

    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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Head
  41. def stageShutdown(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
  44. def toString(): String

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

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

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

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

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

    Permalink
    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