JavaScript is disabled on your browser.
Skip navigation links
io.netty.handler.codec.http.websocketx

Class WebSocketClientProtocolHandler

    • Constructor Detail

      • WebSocketClientProtocolHandler

        public WebSocketClientProtocolHandler(java.net.URI webSocketURL,
         WebSocketVersion version,
         java.lang.String subprotocol,
         boolean allowExtensions,
         HttpHeaders customHeaders,
         int maxFramePayloadLength,
         boolean handleCloseFrames)
        Base constructor
        Parameters:
        webSocketURL - URL for web socket communications. e.g "ws://myhost.com/mypath". Subsequent web socket frames will be sent to this URL.
        version - Version of web socket specification to use to connect to the server
        subprotocol - Sub protocol request sent to the server.
        customHeaders - Map of custom headers to add to the client request
        maxFramePayloadLength - Maximum length of a frame's payload
        handleCloseFrames - true if close frames should not be forwarded and just close the channel
      • WebSocketClientProtocolHandler

        public WebSocketClientProtocolHandler(java.net.URI webSocketURL,
         WebSocketVersion version,
         java.lang.String subprotocol,
         boolean allowExtensions,
         HttpHeaders customHeaders,
         int maxFramePayloadLength)
        Base constructor
        Parameters:
        webSocketURL - URL for web socket communications. e.g "ws://myhost.com/mypath". Subsequent web socket frames will be sent to this URL.
        version - Version of web socket specification to use to connect to the server
        subprotocol - Sub protocol request sent to the server.
        customHeaders - Map of custom headers to add to the client request
        maxFramePayloadLength - Maximum length of a frame's payload
      • WebSocketClientProtocolHandler

        public WebSocketClientProtocolHandler(WebSocketClientHandshaker handshaker,
         boolean handleCloseFrames)
        Base constructor
        Parameters:
        handshaker - The WebSocketClientHandshaker which will be used to issue the handshake once the connection was established to the remote peer.
        handleCloseFrames - true if close frames should not be forwarded and just close the channel
      • WebSocketClientProtocolHandler

        public WebSocketClientProtocolHandler(WebSocketClientHandshaker handshaker)
        Base constructor
        Parameters:
        handshaker - The WebSocketClientHandshaker which will be used to issue the handshake once the connection was established to the remote peer.
Skip navigation links

Copyright © 2008–2018 The Netty Project. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /