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 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​(Map<String,​String> data)` |
    `WebSocketEvent.Builder` | `error​(Throwable error)` |
    `WebSocketEvent.Builder` | `message​(String message)` |
    `WebSocketEvent.Builder` | `session​(javax.websocket.Session session)` |
    `WebSocketEvent.Builder` | `type​(WebSocketEventType type)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Builder

          public Builder()

  - ### Method Detail

    - #### type

          public WebSocketEvent.Builder type​(WebSocketEventType type)

    - #### session

          public WebSocketEvent.Builder session​(javax.websocket.Session session)

    - #### error

          public WebSocketEvent.Builder error​(Throwable error)

    - #### closeReason

          public WebSocketEvent.Builder closeReason​(javax.websocket.CloseReason closeReason)

    - #### message

          public WebSocketEvent.Builder message​(String message)

    - #### data

          public WebSocketEvent.Builder data​(Map<String,​String> data)

    - #### build

          public WebSocketEvent build()