Class PushMessageFactory
java.lang.Object
com.netflix.zuul.netty.server.push.PushMessageFactory
Author: Susheel Aroskar
Date: 11/2/2018
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Object
Application level protocol for asking client to close connectionfinal void
sendErrorAndClose
(io.netty.channel.ChannelHandlerContext ctx, int statusCode, String reasonText) protected abstract Object
serverClosingConnectionMessage
(int statusCode, String reasonText) Message server sends to the client just before it force closes connection from its side
-
Constructor Details
-
PushMessageFactory
public PushMessageFactory()
-
-
Method Details
-
sendErrorAndClose
public final void sendErrorAndClose(io.netty.channel.ChannelHandlerContext ctx, int statusCode, String reasonText) -
goAwayMessage
Application level protocol for asking client to close connection- Returns:
- WebSocketFrame which when sent to client will cause it to close the WebSocket
-
serverClosingConnectionMessage
Message server sends to the client just before it force closes connection from its side
-