Trait

unfiltered.netty

Secured

Related Doc: package netty

Permalink

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

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

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

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

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

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

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def ensureNotSharable(): Unit

    Permalink
    Attributes
    protected[io.netty.channel]
    Definition Classes
    ChannelHandlerAdapter
  14. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    ExceptionHandler
  17. def finalize(): Unit

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

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

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

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

    Permalink

    Called after a failed ssl handshake attempt

  22. def handshakeSuccess(ctx: ChannelHandlerContext): Unit

    Permalink

    Called after a successful ssl handshake attempt

  23. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  25. def isSharable(): Boolean

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

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

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

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

    Permalink

    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
  30. def onNotSslRecordException(ctx: ChannelHandlerContext, t: NotSslRecordException): Unit

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

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

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

    Permalink

    Client code should _always_ pass userEventTriggered events upstream

    Client code should _always_ pass userEventTriggered events upstream

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

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

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

    Permalink
    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