Top Description Methods
org.eclipse.jetty.websocket.core

public Interface IncomingFrames

Known Direct Subinterfaces
org.eclipse.jetty.websocket.core.CoreSession, org.eclipse.jetty.websocket.core.Extension, org.eclipse.jetty.websocket.core.FrameHandler
Known Direct Implementers
org.eclipse.jetty.websocket.core.WebSocketCoreSession.IncomingAdaptor, org.eclipse.jetty.websocket.core.ExtensionStack
Imports
org.eclipse.jetty.util.Callback

Interface for dealing with Incoming Frames.

Method Summary

Modifier and TypeMethod and Description
public void
onFrame(Frame
the frame to process.
frame
,
Callback
the read completion.
callback
)

Process the incoming frame.

Method Detail

onFrameback to summary
public void onFrame(Frame frame, Callback callback)

Process the incoming frame.

Note

if you need to hang onto any information from the frame, be sure to copy it, as the information contained in the Frame will be released and/or reused by the implementation.

Failure of the callback will propagate the failure back to the CoreSession to fail the connection and attempt to send a close Frame if one has not been sent.

Parameters
frame:Frame

the frame to process.

callback:Callback

the read completion.