com.sun.grizzly.websockets.frametypes
Class TextFrameType

java.lang.Object
  extended by com.sun.grizzly.websockets.BaseFrameType
      extended by com.sun.grizzly.websockets.frametypes.TextFrameType
All Implemented Interfaces:
FrameType

public class TextFrameType
extends BaseFrameType


Constructor Summary
TextFrameType()
           
 
Method Summary
 byte[] getBytes(DataFrame dataFrame)
           
 void respond(WebSocket socket, DataFrame frame)
           
 void setPayload(DataFrame frame, byte[] data)
           
 
Methods inherited from class com.sun.grizzly.websockets.BaseFrameType
create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFrameType

public TextFrameType()
Method Detail

setPayload

public void setPayload(DataFrame frame,
                       byte[] data)
Specified by:
setPayload in interface FrameType
Overrides:
setPayload in class BaseFrameType

getBytes

public byte[] getBytes(DataFrame dataFrame)
Specified by:
getBytes in interface FrameType
Overrides:
getBytes in class BaseFrameType

respond

public void respond(WebSocket socket,
                    DataFrame frame)


Copyright © 2013 Oracle Corporation. All Rights Reserved.