public class UpgradeConnection extends AbstractConnection
Eventually, upon successful Upgrade request/response, this connection swaps itself out for the WebSocektClientConnection handler.
Modifier and Type | Class and Description |
---|---|
class |
UpgradeConnection.SendUpgradeRequest |
Connection.Listener
Constructor and Description |
---|
UpgradeConnection(EndPoint endp,
Executor executor,
DefaultWebSocketClient client) |
Modifier and Type | Method and Description |
---|---|
void |
disconnect(boolean onlyOutput) |
void |
onFillable()
Callback method invoked when the endpoint is ready to be read.
|
void |
onOpen()
Callback method invoked when this
Connection is opened. |
addListener, close, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, onClose, onFillInterestedFailed, onReadTimeout, setInputBufferSize, toString
public UpgradeConnection(EndPoint endp, Executor executor, DefaultWebSocketClient client)
public void disconnect(boolean onlyOutput)
public void onFillable()
AbstractConnection
Callback method invoked when the endpoint is ready to be read.
onFillable
in class AbstractConnection
AbstractConnection.fillInterested()
public void onOpen()
Connection
Callback method invoked when this Connection
is opened.
Creators of the connection implementation are responsible for calling this method.
onOpen
in interface Connection
onOpen
in class AbstractConnection
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.