org.java_websocket.framing
Class CloseFrameBuilder

java.lang.Object
  extended by org.java_websocket.framing.FramedataImpl1
      extended by org.java_websocket.framing.CloseFrameBuilder
All Implemented Interfaces:
CloseFrame, FrameBuilder, Framedata

public class CloseFrameBuilder
extends FramedataImpl1
implements CloseFrame


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.java_websocket.framing.Framedata
Framedata.Opcode
 
Field Summary
 
Fields inherited from class org.java_websocket.framing.FramedataImpl1
emptyarray, fin, optcode, transferemasked
 
Fields inherited from interface org.java_websocket.framing.CloseFrame
ABNORMAL_CLOSE, BUGGYCLOSE, EXTENSION, FLASHPOLICY, GOING_AWAY, NEVER_CONNECTED, NO_UTF8, NOCODE, NORMAL, POLICY_VALIDATION, PROTOCOL_ERROR, REFUSE, TLS_ERROR, TOOBIG, UNEXPECTED_CONDITION
 
Constructor Summary
CloseFrameBuilder()
           
CloseFrameBuilder(int code)
           
CloseFrameBuilder(int code, String m)
           
 
Method Summary
 int getCloseCode()
           
 String getMessage()
           
 ByteBuffer getPayloadData()
           
 void setPayload(ByteBuffer payload)
           
 String toString()
           
 
Methods inherited from class org.java_websocket.framing.FramedataImpl1
append, getOpcode, getTransfereMasked, isFin, setFin, setOptcode, setTransferemasked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.java_websocket.framing.Framedata
append, getOpcode, getTransfereMasked, isFin
 

Constructor Detail

CloseFrameBuilder

public CloseFrameBuilder()

CloseFrameBuilder

public CloseFrameBuilder(int code)
                  throws InvalidDataException
Throws:
InvalidDataException

CloseFrameBuilder

public CloseFrameBuilder(int code,
                         String m)
                  throws InvalidDataException
Throws:
InvalidDataException
Method Detail

getCloseCode

public int getCloseCode()
Specified by:
getCloseCode in interface CloseFrame

getMessage

public String getMessage()
Specified by:
getMessage in interface CloseFrame

toString

public String toString()
Overrides:
toString in class FramedataImpl1

setPayload

public void setPayload(ByteBuffer payload)
                throws InvalidDataException
Specified by:
setPayload in interface FrameBuilder
Overrides:
setPayload in class FramedataImpl1
Throws:
InvalidDataException

getPayloadData

public ByteBuffer getPayloadData()
Specified by:
getPayloadData in interface Framedata
Overrides:
getPayloadData in class FramedataImpl1


Copyright © 2013 Pusher. All Rights Reserved.