Secured
@deprecated("As a ChannelInboundHandlerAdapter, you may get notified of ssl handshake state overriding userEventTriggered and matching on SslHandshakeCompletionEvents", since = "0.8.1") @ChannelHandler$$Sharable 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
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
trait ServerErrorResponse
trait ExceptionHandler
class ChannelInboundHandlerAdapter
trait ChannelInboundHandler
class ChannelHandlerAdapter
trait ChannelHandler
class Object
trait Matchable
class Any
Value members
Methods
Client code should always pass userEventTriggered events upstream
- Definition Classes
- ChannelInboundHandlerAdapter -> ChannelInboundHandler
Inherited methods
@throws(java.lang.Exception)
def handlerAdded(x$0: ChannelHandlerContext): Unit
- Inhertied from
- ChannelHandlerAdapter
@ChannelHandlerMask$$Skip @throws(java.lang.Exception)
def channelActive(x$0: ChannelHandlerContext): Unit
- Inhertied from
- ChannelInboundHandlerAdapter
@ChannelHandlerMask$$Skip @throws(java.lang.Exception)
def channelRegistered(x$0: ChannelHandlerContext): Unit
- Inhertied from
- ChannelInboundHandlerAdapter
@ChannelHandlerMask$$Skip @throws(java.lang.Exception)
def channelRead(x$0: ChannelHandlerContext, x$1: <FromJavaObject>): Unit
- Inhertied from
- ChannelInboundHandlerAdapter
@ChannelHandlerMask$$Skip @throws(java.lang.Exception)
def channelReadComplete(x$0: ChannelHandlerContext): Unit
- Inhertied from
- ChannelInboundHandlerAdapter
@ChannelHandlerMask$$Skip @throws(java.lang.Exception)
def channelInactive(x$0: ChannelHandlerContext): Unit
- Inhertied from
- ChannelInboundHandlerAdapter
@throws(java.lang.Exception)
def handlerRemoved(x$0: ChannelHandlerContext): Unit
- Inhertied from
- ChannelHandlerAdapter