Package akka.http.javadsl.model.ws
Class WebSocketCloseException$
- java.lang.Object
-
- akka.http.javadsl.model.ws.WebSocketCloseException$
-
- All Implemented Interfaces:
java.io.Serializable
public class WebSocketCloseException$ extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static WebSocketCloseException$MODULE$Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description WebSocketCloseException$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebSocketCloseExceptioncreate(int closeCode)Create an exception closing the WebSocket with the given close code and an empty reason.WebSocketCloseExceptioncreate(int closeCode, java.lang.String closeReason)Create an exception closing the WebSocket with the given close code and reason.
-
-
-
Field Detail
-
MODULE$
public static final WebSocketCloseException$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
create
public WebSocketCloseException create(int closeCode, java.lang.String closeReason)
Create an exception closing the WebSocket with the given close code and reason.- Parameters:
closeCode- an application specific close code in the range 3000-4999closeReason- a reason, at most 123 bytes when UTF-8 encoded- Returns:
- (undocumented)
-
create
public WebSocketCloseException create(int closeCode)
Create an exception closing the WebSocket with the given close code and an empty reason.- Parameters:
closeCode- an application specific close code in the range 3000-4999- Returns:
- (undocumented)
-
-