org.redkale.net.http

## 类 WebSocketPacket

- java.lang.Object
- - org.redkale.net.http.WebSocketPacket

-     public final class WebSocketPacket
      extends java.lang.Object

  详情见: http://www.redkale.org

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static class` | `WebSocketPacket.FrameType`

  - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected byte[]` | `bytes`
    `static WebSocketPacket` | `DEFAULT_PING_PACKET`
    `protected boolean` | `last`
    `protected java.lang.String` | `payload`
    `protected WebSocketPacket.FrameType` | `type`

  - ### 构造器概要

    构造器
    构造器和说明
    `WebSocketPacket()`
    `WebSocketPacket(byte[] data)`
    `WebSocketPacket(byte[] data, boolean fin)`
    `WebSocketPacket(java.io.Serializable message, boolean fin)`
    `WebSocketPacket(java.lang.String payload)`
    `WebSocketPacket(java.lang.String payload, boolean fin)`
    `WebSocketPacket(WebSocketPacket.FrameType type, byte[] data)`
    `WebSocketPacket(WebSocketPacket.FrameType type, byte[] data, boolean fin)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `byte[]` | `getBytes()`
    `byte[]` | `getContent()`
    `java.lang.String` | `getPayload()`
    `boolean` | `isLast()`
    `java.lang.String` | `toString()`

    - ### 从类继承的方法 java.lang.Object

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

- - ### 字段详细资料

    - #### DEFAULT_PING_PACKET

          public static final WebSocketPacket DEFAULT_PING_PACKET

    - #### type

          protected WebSocketPacket.FrameType type

    - #### payload

          protected java.lang.String payload

    - #### bytes

          protected byte[] bytes

    - #### last

          protected boolean last

  - ### 构造器详细资料

    - #### WebSocketPacket

          public WebSocketPacket()

    - #### WebSocketPacket

          public WebSocketPacket(java.lang.String payload)

    - #### WebSocketPacket

          public WebSocketPacket(java.io.Serializable message,
                                 boolean fin)

    - #### WebSocketPacket

          public WebSocketPacket(java.lang.String payload,
                                 boolean fin)

    - #### WebSocketPacket

          public WebSocketPacket(byte[] data)

    - #### WebSocketPacket

          public WebSocketPacket(byte[] data,
                                 boolean fin)

    - #### WebSocketPacket

          public WebSocketPacket(WebSocketPacket.FrameType type,
                                 byte[] data)

    - #### WebSocketPacket

          public WebSocketPacket(WebSocketPacket.FrameType type,
                                 byte[] data,
                                 boolean fin)

  - ### 方法详细资料

    - #### getContent

          public byte[] getContent()

    - #### getPayload

          public java.lang.String getPayload()

    - #### getBytes

          public byte[] getBytes()

    - #### isLast

          public boolean isLast()

    - #### toString

          public java.lang.String toString()

      覆盖:
        `toString` 在类中 `java.lang.Object`