org.eclipse.jetty.websocket.api.WebSocketListenerpublic class WebSocketConnection
extends org.mozilla.javascript.ScriptableObject
implements org.eclipse.jetty.websocket.api.WebSocketListener
| Constructor | Description |
|---|---|
WebSocketConnection() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getClassName() |
|
void |
jsConstructor(java.lang.Object threadModel,
org.mozilla.javascript.Scriptable thiz,
java.lang.Object connector,
java.lang.String url,
java.lang.Object protocol) |
|
void |
jsFunction_close(int code,
java.lang.String reason) |
|
void |
jsFunction_send(java.lang.String data) |
|
void |
onWebSocketBinary(byte[] payload,
int offset,
int len) |
|
void |
onWebSocketClose(int closeCode,
java.lang.String reason) |
|
void |
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) |
|
void |
onWebSocketError(java.lang.Throwable x) |
|
void |
onWebSocketText(java.lang.String data) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, sizepublic void jsConstructor(java.lang.Object threadModel,
org.mozilla.javascript.Scriptable thiz,
java.lang.Object connector,
java.lang.String url,
java.lang.Object protocol)
public java.lang.String getClassName()
getClassName in class org.mozilla.javascript.ScriptableObjectpublic void jsFunction_send(java.lang.String data)
throws java.io.IOException
java.io.IOExceptionpublic void jsFunction_close(int code,
java.lang.String reason)
throws java.io.IOException
java.io.IOExceptionpublic void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
onWebSocketConnect in interface org.eclipse.jetty.websocket.api.WebSocketListenerpublic void onWebSocketBinary(byte[] payload,
int offset,
int len)
onWebSocketBinary in interface org.eclipse.jetty.websocket.api.WebSocketListenerpublic void onWebSocketText(java.lang.String data)
onWebSocketText in interface org.eclipse.jetty.websocket.api.WebSocketListenerpublic void onWebSocketClose(int closeCode,
java.lang.String reason)
onWebSocketClose in interface org.eclipse.jetty.websocket.api.WebSocketListenerpublic void onWebSocketError(java.lang.Throwable x)
onWebSocketError in interface org.eclipse.jetty.websocket.api.WebSocketListenerCopyright © 2008–2017 The CometD Project. All rights reserved.