unfiltered.netty

Secured

trait Secured extends ChannelInboundHandlerAdapter with ServerErrorResponse

Adds ssl handshaking to a channel handler's #channelConnected method This assumes a SslHandler was added to the underlying ChannelPipeline. The ssl handshake will be handled for you. You may wish to know preform custom behavior on if the handshake is a pass or failure. To do so, use the handshakeSuccess(ctx) or handshakeFailure(ctx, event) to do so note(doug): since the handshake of ssl handlers are invoked for you, this traits usefulness is a little dubious. users can just override userEventTriggered, matching on netties SslHandshakeCompletionEvent. we may want to remove this trait altogether as it adds little value

Annotations
@deprecated @Sharable()
Deprecated

(Since version 0.8.1) As a ChannelInboundHandlerAdapter, you may get notified of ssl handshake state overriding userEventTriggered and matching on SslHandshakeCompletionEvents

Source
secured.scala
Linear Supertypes
ServerErrorResponse, ExceptionHandler, ChannelInboundHandlerAdapter, ChannelInboundHandler, ChannelHandlerAdapter, ChannelHandler, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Secured
  2. ServerErrorResponse
  3. ExceptionHandler
  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

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 channelActive(arg0: ChannelHandlerContext): Unit

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

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

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

    Definition Classes
    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. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  17. def exceptionCaught(ctx: ChannelHandlerContext, t: Throwable): Unit

    Definition Classes
    ExceptionHandler
  18. def finalize(): Unit

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

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

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

    Definition Classes
    ChannelHandlerAdapter → ChannelHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  22. def handshakeFailure(ctx: ChannelHandlerContext, event: SslHandshakeCompletionEvent): Unit

    Called after a failed ssl handshake attempt

  23. def handshakeSuccess(ctx: ChannelHandlerContext): Unit

    Called after a successful ssl handshake attempt

  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def isSharable(): Boolean

    Definition Classes
    ChannelHandlerAdapter
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  30. def onException(ctx: ChannelHandlerContext, t: Throwable): Unit

    provides a filter to catch NotSslRecordExceptions raised by SslHandlers, falling back on ServerErrorResponse

    provides a filter to catch NotSslRecordExceptions raised by SslHandlers, falling back on ServerErrorResponse

    Definition Classes
    SecuredServerErrorResponseExceptionHandler
  31. def onNotSslRecordException(ctx: ChannelHandlerContext, t: NotSslRecordException): Unit

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. def userEventTriggered(ctx: ChannelHandlerContext, event: AnyRef): Unit

    Client code should _always_ pass userEventTriggered events upstream

    Client code should _always_ pass userEventTriggered events upstream

    Definition Classes
    Secured → ChannelInboundHandlerAdapter → ChannelInboundHandler
  35. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ServerErrorResponse

Inherited from ExceptionHandler

Inherited from ChannelInboundHandlerAdapter

Inherited from ChannelInboundHandler

Inherited from ChannelHandlerAdapter

Inherited from ChannelHandler

Inherited from AnyRef

Inherited from Any

Ungrouped