## Uses of Interface
javax.websocket.CloseReason.CloseCode

- Packages that use CloseReason.CloseCode
  Package | Description
  --- | ---
  javax.websocket | This package contains all the WebSocket APIs common to both the client and server side.

- - ### Uses of CloseReason.CloseCode in javax.websocket

    Classes in javax.websocket that implement CloseReason.CloseCode
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `CloseReason.CloseCodes` An Enumeration of status codes for a web socket close that are defined in the specification.

    Methods in javax.websocket that return CloseReason.CloseCode
    Modifier and Type | Method and Description
    --- | ---
    `CloseReason.CloseCode` | CloseReason.`getCloseCode()` The Close code associated with this CloseReason.
    `static CloseReason.CloseCode` | CloseReason.CloseCodes.`getCloseCode(int code)` Creates a CloseCode from the given int code number.

    Constructors in javax.websocket with parameters of type CloseReason.CloseCode
    Constructor and Description
    `CloseReason(CloseReason.CloseCode closeCode, String reasonPhrase)` Creates a reason for closing a web socket connection with the given code and reason phrase.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.