com.sun.grizzly.websockets.draft06
Class ClosingFrame

java.lang.Object
  extended by com.sun.grizzly.websockets.DataFrame
      extended by com.sun.grizzly.websockets.draft06.ClosingFrame

public class ClosingFrame
extends DataFrame


Field Summary
static byte[] EMPTY_BYTES
           
 
Fields inherited from class com.sun.grizzly.websockets.DataFrame
STRICT_UTF8_CHARSET, STRICT_UTF8_MAX_BYTES_PER_CHAR
 
Constructor Summary
ClosingFrame()
           
ClosingFrame(byte[] data)
           
ClosingFrame(int code, String reason)
           
 
Method Summary
 byte[] getBytes()
           
 int getCode()
           
 String getReason()
           
 void setPayload(byte[] bytes)
           
 String toString()
           
 
Methods inherited from class com.sun.grizzly.websockets.DataFrame
getTextPayload, getType, isLast, respond, setLast, setPayload, toStream
 
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)

ClosingFrame

public ClosingFrame(byte[] data)
Method Detail

getCode

public int getCode()

getReason

public String getReason()

setPayload

public void setPayload(byte[] bytes)
Overrides:
setPayload in class DataFrame

getBytes

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

toString

public String toString()
Overrides:
toString in class DataFrame


Copyright © 2013 Oracle Corporation. All Rights Reserved.