Interface WebSocketHttpResponse

All Superinterfaces:
io.netty.handler.codec.DecoderResultProvider, io.netty.handler.codec.http.HttpMessage, io.netty.handler.codec.http.HttpObject, io.netty.handler.codec.http.HttpResponse, Processor<io.netty.handler.codec.http.websocketx.WebSocketFrame,io.netty.handler.codec.http.websocketx.WebSocketFrame>, Publisher<io.netty.handler.codec.http.websocketx.WebSocketFrame>, Subscriber<io.netty.handler.codec.http.websocketx.WebSocketFrame>
All Known Implementing Classes:
DefaultWebSocketHttpResponse

public interface WebSocketHttpResponse extends io.netty.handler.codec.http.HttpResponse, Processor<io.netty.handler.codec.http.websocketx.WebSocketFrame,io.netty.handler.codec.http.websocketx.WebSocketFrame>
Combines HttpResponse and Processor into one message. So it represents a http response with a processor that can handle a WebSocket. This is only used for server side responses. For client side websocket requests, it's better to configure the reactive streams pipeline directly.
Author:
jroper, Graeme Rocher
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.handler.codec.http.websocketx.WebSocketServerHandshakerFactory
    Get the handshaker factory to use to reconfigure the channel.

    Methods inherited from interface io.netty.handler.codec.DecoderResultProvider

    decoderResult, setDecoderResult

    Methods inherited from interface io.netty.handler.codec.http.HttpMessage

    getProtocolVersion, headers, protocolVersion

    Methods inherited from interface io.netty.handler.codec.http.HttpObject

    getDecoderResult

    Methods inherited from interface io.netty.handler.codec.http.HttpResponse

    getStatus, setProtocolVersion, setStatus, status

    Methods inherited from interface org.reactivestreams.Publisher

    subscribe

    Methods inherited from interface org.reactivestreams.Subscriber

    onComplete, onError, onNext, onSubscribe
  • Method Details

    • handshakerFactory

      io.netty.handler.codec.http.websocketx.WebSocketServerHandshakerFactory handshakerFactory()
      Get the handshaker factory to use to reconfigure the channel.
      Returns:
      The handshaker factory.