com.sun.grizzly.websockets
Class DataFrame

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

public class DataFrame
extends Object


Constructor Summary
DataFrame(FrameType frameType)
           
DataFrame(String data)
           
 
Method Summary
 byte[] frame()
           
 byte[] frame(FrameType type)
           
 byte[] getBinaryPayload()
           
 String getTextPayload()
           
 FrameType getType()
           
static DataFrame read(NetworkHandler handler)
           
 void respond(WebSocket socket)
           
 void setBytes(byte[] bytes)
           
 void setTextPayload(String payload)
           
 void setType(FrameType type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataFrame

public DataFrame(FrameType frameType)

DataFrame

public DataFrame(String data)
Method Detail

read

public static DataFrame read(NetworkHandler handler)
                      throws IOException
Throws:
IOException

getType

public FrameType getType()

setType

public void setType(FrameType type)

getTextPayload

public String getTextPayload()

setTextPayload

public void setTextPayload(String payload)

setBytes

public void setBytes(byte[] bytes)

getBinaryPayload

public byte[] getBinaryPayload()

frame

public byte[] frame()

frame

public byte[] frame(FrameType type)

respond

public void respond(WebSocket socket)
             throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Oracle Corpration. All Rights Reserved.