Package org.cometd.javascript
Class WebSocketConnection
- java.lang.Object
-
- org.mozilla.javascript.ScriptableObject
-
- org.cometd.javascript.WebSocketConnection
-
- All Implemented Interfaces:
java.io.Serializable,org.eclipse.jetty.websocket.api.WebSocketListener,org.mozilla.javascript.ConstProperties,org.mozilla.javascript.debug.DebuggableObject,org.mozilla.javascript.Scriptable
public class WebSocketConnection extends org.mozilla.javascript.ScriptableObject implements org.eclipse.jetty.websocket.api.WebSocketListener- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebSocketConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClassName()voidjsConstructor(java.lang.Object threadModel, org.mozilla.javascript.Scriptable thiz, java.lang.Object connector, java.lang.String url, java.lang.Object protocol)voidjsFunction_close(int code, java.lang.String reason)voidjsFunction_send(java.lang.String data)voidonWebSocketBinary(byte[] payload, int offset, int len)voidonWebSocketClose(int closeCode, java.lang.String reason)voidonWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)voidonWebSocketError(java.lang.Throwable x)voidonWebSocketText(java.lang.String data)-
Methods inherited from class org.mozilla.javascript.ScriptableObject
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
-
-
-
-
Method Detail
-
jsConstructor
public void jsConstructor(java.lang.Object threadModel, org.mozilla.javascript.Scriptable thiz, java.lang.Object connector, java.lang.String url, java.lang.Object protocol)
-
getClassName
public java.lang.String getClassName()
- Specified by:
getClassNamein interfaceorg.mozilla.javascript.Scriptable- Specified by:
getClassNamein classorg.mozilla.javascript.ScriptableObject
-
jsFunction_send
public void jsFunction_send(java.lang.String data) throws java.io.IOException- Throws:
java.io.IOException
-
jsFunction_close
public void jsFunction_close(int code, java.lang.String reason) throws java.io.IOException- Throws:
java.io.IOException
-
onWebSocketConnect
public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
- Specified by:
onWebSocketConnectin interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-
onWebSocketBinary
public void onWebSocketBinary(byte[] payload, int offset, int len)- Specified by:
onWebSocketBinaryin interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-
onWebSocketText
public void onWebSocketText(java.lang.String data)
- Specified by:
onWebSocketTextin interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-
onWebSocketClose
public void onWebSocketClose(int closeCode, java.lang.String reason)- Specified by:
onWebSocketClosein interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-
onWebSocketError
public void onWebSocketError(java.lang.Throwable x)
- Specified by:
onWebSocketErrorin interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-
-