javax.websocket
Interface CloseReason.CloseCode

All Known Implementing Classes:
CloseReason.CloseCodes
Enclosing class:
CloseReason

public static interface CloseReason.CloseCode

A marker interface for the close codes. This interface may be implemented by enumerations that contain web socket close codes, for example enumerations that contain all the in use close codes as of web socket 1.0, or an enumeration that contains close codes that are currently reserved for special use by the web socket specification.


Method Summary
 int getCode()
          Returns the code number, for example the integer '1000' for normal closure.
 

Method Detail

getCode

int getCode()
Returns the code number, for example the integer '1000' for normal closure.

Returns:
the code number



Copyright © 2012-2013 Oracle and/or its affiliates. All rights reserved.