public class NettyWebSocket
extends org.atmosphere.websocket.WebSocket
| Constructor and Description |
|---|
NettyWebSocket(io.netty.channel.Channel channel,
org.atmosphere.cpr.AtmosphereConfig config,
boolean noInternalAlloc,
boolean binaryWrite) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
address()
The remote ip address.
|
void |
close() |
protected java.util.concurrent.Future<?> |
closeFuture() |
protected org.atmosphere.websocket.WebSocket |
closeFuture(java.util.concurrent.Future<?> closeFuture) |
io.netty.channel.ChannelId |
id() |
boolean |
isOpen() |
org.atmosphere.websocket.WebSocket |
resource(org.atmosphere.cpr.AtmosphereResource r) |
org.atmosphere.websocket.WebSocket |
sendPing(byte[] payload)
Send a WebSocket Ping
|
org.atmosphere.websocket.WebSocket |
sendPong(byte[] payload)
Send a WebSocket Pong
|
org.atmosphere.websocket.WebSocket |
write(byte[] data) |
org.atmosphere.websocket.WebSocket |
write(byte[] data,
int offset,
int length) |
org.atmosphere.websocket.WebSocket |
write(java.lang.String data) |
attachment, attachment, attributes, binaryWrite, broadcast, close, config, flush, lastWriteTimeStampInMilliseconds, notSupported, redirect, resource, shiftAttributes, transform, transform, uuid, webSocketHandler, webSocketHandler, write, write, write, writeErrorpublic NettyWebSocket(io.netty.channel.Channel channel,
org.atmosphere.cpr.AtmosphereConfig config,
boolean noInternalAlloc,
boolean binaryWrite)
public org.atmosphere.websocket.WebSocket resource(org.atmosphere.cpr.AtmosphereResource r)
resource in class org.atmosphere.websocket.WebSocketpublic org.atmosphere.websocket.WebSocket write(java.lang.String data)
throws java.io.IOException
write in class org.atmosphere.websocket.WebSocketjava.io.IOExceptionpublic org.atmosphere.websocket.WebSocket write(byte[] data)
throws java.io.IOException
write in class org.atmosphere.websocket.WebSocketjava.io.IOExceptionpublic org.atmosphere.websocket.WebSocket write(byte[] data,
int offset,
int length)
throws java.io.IOException
write in class org.atmosphere.websocket.WebSocketjava.io.IOExceptionpublic boolean isOpen()
isOpen in class org.atmosphere.websocket.WebSocketpublic void close()
close in class org.atmosphere.websocket.WebSocketpublic org.atmosphere.websocket.WebSocket sendPing(byte[] payload)
sendPing in class org.atmosphere.websocket.WebSocketpayload - the bytes to sendpublic org.atmosphere.websocket.WebSocket sendPong(byte[] payload)
sendPong in class org.atmosphere.websocket.WebSocketpayload - the bytes to sendpublic java.lang.String address()
protected org.atmosphere.websocket.WebSocket closeFuture(java.util.concurrent.Future<?> closeFuture)
protected java.util.concurrent.Future<?> closeFuture()
public io.netty.channel.ChannelId id()
Copyright © 2018. All Rights Reserved.