Package com.enonic.xp.web.websocket
Class WebSocketEvent.Builder
- java.lang.Object
-
- com.enonic.xp.web.websocket.WebSocketEvent.Builder
-
- Enclosing class:
- WebSocketEvent
public static final class WebSocketEvent.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebSocketEvent
build()
WebSocketEvent.Builder
closeReason(javax.websocket.CloseReason closeReason)
WebSocketEvent.Builder
data(java.util.Map<java.lang.String,java.lang.String> data)
WebSocketEvent.Builder
error(java.lang.Throwable error)
WebSocketEvent.Builder
message(java.lang.String message)
WebSocketEvent.Builder
session(javax.websocket.Session session)
WebSocketEvent.Builder
type(WebSocketEventType type)
-
-
-
Method Detail
-
type
public WebSocketEvent.Builder type(WebSocketEventType type)
-
session
public WebSocketEvent.Builder session(javax.websocket.Session session)
-
error
public WebSocketEvent.Builder error(java.lang.Throwable error)
-
closeReason
public WebSocketEvent.Builder closeReason(javax.websocket.CloseReason closeReason)
-
message
public WebSocketEvent.Builder message(java.lang.String message)
-
data
public WebSocketEvent.Builder data(java.util.Map<java.lang.String,java.lang.String> data)
-
build
public WebSocketEvent build()
-
-