public class WebSocketConnection
extends org.mozilla.javascript.ScriptableObject
implements org.eclipse.jetty.websocket.api.WebSocketListener
Constructor and Description |
---|
WebSocketConnection() |
Modifier and Type | Method and Description |
---|---|
String |
getClassName() |
void |
jsConstructor(Object threadModel,
org.mozilla.javascript.Scriptable thiz,
Object connector,
String url,
Object protocol) |
void |
jsFunction_close(int code,
String reason) |
void |
jsFunction_send(String data) |
void |
onWebSocketBinary(byte[] payload,
int offset,
int len) |
void |
onWebSocketClose(int closeCode,
String reason) |
void |
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) |
void |
onWebSocketError(Throwable x) |
void |
onWebSocketText(String data) |
applyDescriptorToAttributeBitset, 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, size
public void jsConstructor(Object threadModel, org.mozilla.javascript.Scriptable thiz, Object connector, String url, Object protocol)
public String getClassName()
getClassName
in interface org.mozilla.javascript.Scriptable
getClassName
in class org.mozilla.javascript.ScriptableObject
public void jsFunction_send(String data) throws IOException
IOException
public void jsFunction_close(int code, String reason) throws IOException
IOException
public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
onWebSocketConnect
in interface org.eclipse.jetty.websocket.api.WebSocketListener
public void onWebSocketBinary(byte[] payload, int offset, int len)
onWebSocketBinary
in interface org.eclipse.jetty.websocket.api.WebSocketListener
public void onWebSocketText(String data)
onWebSocketText
in interface org.eclipse.jetty.websocket.api.WebSocketListener
public void onWebSocketClose(int closeCode, String reason)
onWebSocketClose
in interface org.eclipse.jetty.websocket.api.WebSocketListener
public void onWebSocketError(Throwable x)
onWebSocketError
in interface org.eclipse.jetty.websocket.api.WebSocketListener
Copyright © 2008–2016 The CometD Project. All rights reserved.