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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    ProtocolNegoitationHandler → ByteToMessageDecoder
  18. 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] )
  19. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

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

  29. def internalBuffer(): ByteBuf

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

    Definition Classes
    Any
  31. def isSharable(): Boolean

    Definition Classes
    ChannelHandlerAdapter
  32. def isSingleDecode(): Boolean

    Definition Classes
    ByteToMessageDecoder
  33. lazy val log: Logger

    Logger name is inferred from the class name.

    Logger name is inferred from the class name.

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

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

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

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

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

    Definition Classes
    AnyRef
  39. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. 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