Class DefaultWebSocketHttpResponse
java.lang.Object
io.netty.handler.codec.http.DefaultHttpObject
io.netty.handler.codec.http.DefaultHttpMessage
io.netty.handler.codec.http.DefaultHttpResponse
org.playframework.netty.http.DefaultWebSocketHttpResponse
- All Implemented Interfaces:
io.netty.handler.codec.DecoderResultProvider, io.netty.handler.codec.http.HttpMessage, io.netty.handler.codec.http.HttpObject, io.netty.handler.codec.http.HttpResponse, WebSocketHttpResponse, 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>
public class DefaultWebSocketHttpResponse
extends io.netty.handler.codec.http.DefaultHttpResponse
implements WebSocketHttpResponse
A default WebSocket HTTP response.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final io.netty.handler.codec.http.websocketx.WebSocketServerHandshakerFactoryprivate final org.reactivestreams.Processor<io.netty.handler.codec.http.websocketx.WebSocketFrame, io.netty.handler.codec.http.websocketx.WebSocketFrame> -
Constructor Summary
ConstructorsConstructorDescriptionDefaultWebSocketHttpResponse(io.netty.handler.codec.http.HttpVersion version, io.netty.handler.codec.http.HttpResponseStatus status, boolean validateHeaders, org.reactivestreams.Processor<io.netty.handler.codec.http.websocketx.WebSocketFrame, io.netty.handler.codec.http.websocketx.WebSocketFrame> processor, io.netty.handler.codec.http.websocketx.WebSocketServerHandshakerFactory handshakerFactory) DefaultWebSocketHttpResponse(io.netty.handler.codec.http.HttpVersion version, io.netty.handler.codec.http.HttpResponseStatus status, org.reactivestreams.Processor<io.netty.handler.codec.http.websocketx.WebSocketFrame, io.netty.handler.codec.http.websocketx.WebSocketFrame> processor, io.netty.handler.codec.http.websocketx.WebSocketServerHandshakerFactory handshakerFactory) -
Method Summary
Modifier and TypeMethodDescriptionio.netty.handler.codec.http.websocketx.WebSocketServerHandshakerFactoryGet the handshaker factory to use to reconfigure the channel.voidvoidvoidonNext(io.netty.handler.codec.http.websocketx.WebSocketFrame webSocketFrame) voidonSubscribe(org.reactivestreams.Subscription subscription) voidsubscribe(org.reactivestreams.Subscriber<? super io.netty.handler.codec.http.websocketx.WebSocketFrame> subscriber) Methods inherited from class io.netty.handler.codec.http.DefaultHttpResponse
equals, getStatus, hashCode, setProtocolVersion, setStatus, status, toStringMethods inherited from class io.netty.handler.codec.http.DefaultHttpMessage
getProtocolVersion, headers, protocolVersionMethods inherited from class io.netty.handler.codec.http.DefaultHttpObject
decoderResult, getDecoderResult, setDecoderResultMethods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResultMethods inherited from interface io.netty.handler.codec.http.HttpMessage
getProtocolVersion, headers, protocolVersionMethods inherited from interface io.netty.handler.codec.http.HttpObject
getDecoderResultMethods inherited from interface io.netty.handler.codec.http.HttpResponse
getStatus, setProtocolVersion, setStatus, status
-
Field Details
-
processor
private final org.reactivestreams.Processor<io.netty.handler.codec.http.websocketx.WebSocketFrame, io.netty.handler.codec.http.websocketx.WebSocketFrame> processor -
handshakerFactory
private final io.netty.handler.codec.http.websocketx.WebSocketServerHandshakerFactory handshakerFactory
-
-
Constructor Details
-
DefaultWebSocketHttpResponse
public DefaultWebSocketHttpResponse(io.netty.handler.codec.http.HttpVersion version, io.netty.handler.codec.http.HttpResponseStatus status, org.reactivestreams.Processor<io.netty.handler.codec.http.websocketx.WebSocketFrame, io.netty.handler.codec.http.websocketx.WebSocketFrame> processor, io.netty.handler.codec.http.websocketx.WebSocketServerHandshakerFactory handshakerFactory) -
DefaultWebSocketHttpResponse
public DefaultWebSocketHttpResponse(io.netty.handler.codec.http.HttpVersion version, io.netty.handler.codec.http.HttpResponseStatus status, boolean validateHeaders, org.reactivestreams.Processor<io.netty.handler.codec.http.websocketx.WebSocketFrame, io.netty.handler.codec.http.websocketx.WebSocketFrame> processor, io.netty.handler.codec.http.websocketx.WebSocketServerHandshakerFactory handshakerFactory)
-
-
Method Details
-
handshakerFactory
public io.netty.handler.codec.http.websocketx.WebSocketServerHandshakerFactory handshakerFactory()Description copied from interface:WebSocketHttpResponseGet the handshaker factory to use to reconfigure the channel.- Specified by:
handshakerFactoryin interfaceWebSocketHttpResponse- Returns:
- The handshaker factory.
-
subscribe
public void subscribe(org.reactivestreams.Subscriber<? super io.netty.handler.codec.http.websocketx.WebSocketFrame> subscriber) - Specified by:
subscribein interfaceorg.reactivestreams.Publisher<io.netty.handler.codec.http.websocketx.WebSocketFrame>
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription subscription) - Specified by:
onSubscribein interfaceorg.reactivestreams.Subscriber<io.netty.handler.codec.http.websocketx.WebSocketFrame>
-
onNext
public void onNext(io.netty.handler.codec.http.websocketx.WebSocketFrame webSocketFrame) - Specified by:
onNextin interfaceorg.reactivestreams.Subscriber<io.netty.handler.codec.http.websocketx.WebSocketFrame>
-
onError
- Specified by:
onErrorin interfaceorg.reactivestreams.Subscriber<io.netty.handler.codec.http.websocketx.WebSocketFrame>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<io.netty.handler.codec.http.websocketx.WebSocketFrame>
-