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, org.reactivestreams.Processor<io.netty.handler.codec.http.websocketx.WebSocketFrame,​io.netty.handler.codec.http.websocketx.WebSocketFrame>, org.reactivestreams.Publisher<io.netty.handler.codec.http.websocketx.WebSocketFrame>, org.reactivestreams.Subscriber<io.netty.handler.codec.http.websocketx.WebSocketFrame>
    All Known Implementing Classes:
    DefaultWebSocketHttpResponse

    public interface WebSocketHttpResponse
    extends io.netty.handler.codec.http.HttpResponse, org.reactivestreams.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 an 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.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      io.netty.handler.codec.http.websocketx.WebSocketServerHandshakerFactory handshakerFactory()
      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 Detail

      • handshakerFactory

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