org.mashupbots.socko.webserver

ProtocolNegoitationHandler

class ProtocolNegoitationHandler extends ByteToMessageDecoder with Logger

Handler used with SPDY that performs protocol negotiation.

Once Jetty's NextProtoNego returns the selected protocol, we setup the pipeline accordingly.

Code ported from post form Jos Dirksen and Netty SpdyOrHttpChooser class

Linear Supertypes
Logger, ByteToMessageDecoder, ChannelInboundHandlerAdapter, ChannelInboundHandler, ChannelHandlerAdapter, ChannelHandler, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ProtocolNegoitationHandler
  2. Logger
  3. ByteToMessageDecoder
  4. ChannelInboundHandlerAdapter
  5. ChannelInboundHandler
  6. ChannelHandlerAdapter
  7. ChannelHandler
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ProtocolNegoitationHandler(server: WebServer)

    server

    Web Server

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. def actualReadableBytes(): Int

    Attributes
    protected[io.netty.handler.codec]
    Definition Classes
    ByteToMessageDecoder
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def callDecode(arg0: ChannelHandlerContext, arg1: ByteBuf, arg2: List[AnyRef]): Unit

    Attributes
    protected[io.netty.handler.codec]
    Definition Classes
    ByteToMessageDecoder
  7. def channelActive(arg0: ChannelHandlerContext): Unit

    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  8. def channelInactive(arg0: ChannelHandlerContext): Unit

    Definition Classes
    ByteToMessageDecoder → ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  9. def channelRead(arg0: ChannelHandlerContext, arg1: Any): Unit

    Definition Classes
    ByteToMessageDecoder → ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  10. def channelReadComplete(arg0: ChannelHandlerContext): Unit

    Definition Classes
    ByteToMessageDecoder → ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  11. def channelRegistered(arg0: ChannelHandlerContext): Unit

    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  12. def channelUnregistered(arg0: ChannelHandlerContext): Unit

    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  13. def channelWritabilityChanged(arg0: ChannelHandlerContext): Unit

    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def decode(ctx: ChannelHandlerContext, in: ByteBuf, out: List[AnyRef]): Unit

    Definition Classes
    ProtocolNegoitationHandler → ByteToMessageDecoder
  16. def decodeLast(arg0: ChannelHandlerContext, arg1: ByteBuf, arg2: List[AnyRef]): Unit

    Attributes
    protected[io.netty.handler.codec]
    Definition Classes
    ByteToMessageDecoder
    Annotations
    @throws( classOf[java.lang.Exception] )
  17. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  19. def exceptionCaught(arg0: ChannelHandlerContext, arg1: Throwable): Unit

    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler → ChannelHandlerAdapter → ChannelHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  20. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  22. def handlerAdded(arg0: ChannelHandlerContext): Unit

    Definition Classes
    ChannelHandlerAdapter → ChannelHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  23. final def handlerRemoved(arg0: ChannelHandlerContext): Unit

    Definition Classes
    ByteToMessageDecoder → ChannelHandlerAdapter → ChannelHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  24. def handlerRemoved0(arg0: ChannelHandlerContext): Unit

    Attributes
    protected[io.netty.handler.codec]
    Definition Classes
    ByteToMessageDecoder
    Annotations
    @throws( classOf[java.lang.Exception] )
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. def initPipeline(ctx: ChannelHandlerContext): Boolean

  27. def internalBuffer(): ByteBuf

    Attributes
    protected[io.netty.handler.codec]
    Definition Classes
    ByteToMessageDecoder
  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. def isSharable(): Boolean

    Definition Classes
    ChannelHandlerAdapter
  30. def isSingleDecode(): Boolean

    Definition Classes
    ByteToMessageDecoder
  31. lazy val log: Logger

    Logger name is inferred from the class name.

    Logger name is inferred from the class name.

    Definition Classes
    Logger
  32. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  35. def setSingleDecode(arg0: Boolean): Unit

    Definition Classes
    ByteToMessageDecoder
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. def userEventTriggered(arg0: ChannelHandlerContext, arg1: Any): Unit

    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  39. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logger

Inherited from ByteToMessageDecoder

Inherited from ChannelInboundHandlerAdapter

Inherited from ChannelInboundHandler

Inherited from ChannelHandlerAdapter

Inherited from ChannelHandler

Inherited from AnyRef

Inherited from Any

Ungrouped