javax.net.websocket.extensions
Class FrameHandler

java.lang.Object
  extended by javax.net.websocket.extensions.FrameHandler

public abstract class FrameHandler
extends Object

A FrameHandler is a link in the chain of handlers associated with the web socket extensions configured for an endpoint. Each framehandler belongs to an extension, either as the handler for all the incoming web socket frames, of as the handler for all the outgoing web socket frames. on per connection.

Since:
DRAFT 003
Author:
dannycoward

Constructor Summary
FrameHandler(FrameHandler nextHandler)
          Constructor that creates a FrameHandler with the given framehandler as the next frame handler in the chain.
 
Method Summary
 FrameHandler getNextHandler()
          The next handler in the handler chain.
 void handleFrame(Frame f)
          This method is invoked whenever the implementation is ready to invoke this framehandler as part of the framehandler chain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameHandler

public FrameHandler(FrameHandler nextHandler)
Constructor that creates a FrameHandler with the given framehandler as the next frame handler in the chain.

Parameters:
nextHandler -
Method Detail

getNextHandler

public FrameHandler getNextHandler()
The next handler in the handler chain.


handleFrame

public void handleFrame(Frame f)
This method is invoked whenever the implementation is ready to invoke this framehandler as part of the framehandler chain. The defauly implementation in this class is a no-op: i.e. it simply invokes the next handler in the chain with the frame passed in.



Copyright © 2012. All Rights Reserved.