org.cometd
Class XMLHttpRequestExchange

java.lang.Object
  extended by org.mozilla.javascript.ScriptableObject
      extended by org.cometd.XMLHttpRequestExchange
All Implemented Interfaces:
java.io.Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable

public class XMLHttpRequestExchange
extends org.mozilla.javascript.ScriptableObject

Version:
$Revision: 753 $ $Date: 2009-09-29 20:49:23 +0200 (Tue, 29 Sep 2009) $
See Also:
Serialized Form

Nested Class Summary
static class XMLHttpRequestExchange.CometdExchange
           
 
Field Summary
 
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
XMLHttpRequestExchange()
           
 
Method Summary
 java.lang.String getClassName()
           
 org.eclipse.jetty.client.HttpExchange getHttpExchange()
           
 void jsConstructor(java.lang.Object threadModel, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thiz, org.mozilla.javascript.Function function, java.lang.String method, java.lang.String url)
           
 void jsFunction_addRequestHeader(java.lang.String name, java.lang.String value)
           
 void jsFunction_cancel()
           
 java.lang.String jsFunction_getAllResponseHeaders()
           
 java.lang.String jsFunction_getResponseHeader(java.lang.String name)
           
 void jsFunction_setRequestContent(java.lang.String data)
           
 java.lang.String jsGet_method()
           
 int jsGet_readyState()
           
 int jsGet_responseStatus()
           
 java.lang.String jsGet_responseStatusText()
           
 java.lang.String jsGet_responseText()
           
 
Methods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLHttpRequestExchange

public XMLHttpRequestExchange()
Method Detail

jsConstructor

public void jsConstructor(java.lang.Object threadModel,
                          org.mozilla.javascript.Scriptable scope,
                          org.mozilla.javascript.Scriptable thiz,
                          org.mozilla.javascript.Function function,
                          java.lang.String method,
                          java.lang.String url)

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in interface org.mozilla.javascript.Scriptable
Specified by:
getClassName in class org.mozilla.javascript.ScriptableObject

getHttpExchange

public org.eclipse.jetty.client.HttpExchange getHttpExchange()

jsFunction_addRequestHeader

public void jsFunction_addRequestHeader(java.lang.String name,
                                        java.lang.String value)

jsGet_method

public java.lang.String jsGet_method()

jsFunction_setRequestContent

public void jsFunction_setRequestContent(java.lang.String data)
                                  throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

jsGet_readyState

public int jsGet_readyState()

jsGet_responseText

public java.lang.String jsGet_responseText()

jsGet_responseStatus

public int jsGet_responseStatus()

jsGet_responseStatusText

public java.lang.String jsGet_responseStatusText()

jsFunction_cancel

public void jsFunction_cancel()

jsFunction_getAllResponseHeaders

public java.lang.String jsFunction_getAllResponseHeaders()

jsFunction_getResponseHeader

public java.lang.String jsFunction_getResponseHeader(java.lang.String name)


Copyright © 2010 Dojo Foundation. All Rights Reserved.