org.glassfish.grizzly.websockets
Class ClosingFrame

java.lang.Object
  extended by org.glassfish.grizzly.websockets.DataFrame
      extended by org.glassfish.grizzly.websockets.ClosingFrame

public class ClosingFrame
extends DataFrame


Field Summary
static byte[] EMPTY_BYTES
           
 
Fields inherited from class org.glassfish.grizzly.websockets.DataFrame
GRIZZLY_MAX_FRAME_SIZE
 
Constructor Summary
ClosingFrame()
           
ClosingFrame(int code, String reason)
           
 
Method Summary
 byte[] getBinaryPayload()
           
 int getCode()
           
 String getReason()
           
 void unwrap(byte[] bytes)
           
 
Methods inherited from class org.glassfish.grizzly.websockets.DataFrame
convert, convert, frame, getTextPayload, getType, respond, setPayload, setPayload, setType, toArray, toString, unframe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_BYTES

public static final byte[] EMPTY_BYTES
Constructor Detail

ClosingFrame

public ClosingFrame()

ClosingFrame

public ClosingFrame(int code,
                    String reason)
Method Detail

getCode

public int getCode()

getReason

public String getReason()

unwrap

public void unwrap(byte[] bytes)

getBinaryPayload

public byte[] getBinaryPayload()
Overrides:
getBinaryPayload in class DataFrame


Copyright © 2011 Oracle Corpration. All Rights Reserved.