|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqx.core.Object
qx.core.Target
qx.io.remote.AbstractRemoteTransport
qx.io.remote.XmlHttpTransport
public class XmlHttpTransport
Constructor Summary | |
---|---|
XmlHttpTransport()
|
Method Summary | |
---|---|
void |
_applyState(java.lang.Object value,
java.lang.Object old)
|
java.lang.Object |
_onreadystatechange(Event e)
|
void |
failedLocally()
Force the transport into the failed state (“failed”). |
java.lang.Integer |
getFetchedLength()
Returns the length of the content as fetched thus far |
java.lang.Object |
getReadyState()
Get the ready state of this transports request. |
java.lang.Object |
getRequest()
|
java.lang.Object |
getResponseContent()
|
java.lang.Object |
getResponseHeader(java.lang.Object vLabel)
Returns a specific header provided by the server upon sending a request, with header name determined by the argument headerName. |
java.lang.Object |
getResponseHeaders()
Provides a hash of all response headers. |
java.lang.String |
getResponseText()
Provides the response text from the request when available and null otherwise. |
java.lang.Object |
getResponseXml()
Provides the XML provided by the response if any and null otherwise. |
java.lang.Integer |
getStatusCode()
Returns the current status code of the request if available or -1 if not. |
java.lang.String |
getStatusText()
Provides the status text for the current request if available and null otherwise. |
java.lang.Object |
getStringResponseHeaders()
|
void |
send()
|
void |
setRequestHeader(java.lang.Object vLabel,
java.lang.Object vValue)
Set a request header to this transports request. |
Methods inherited from class qx.core.Target |
---|
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener |
Methods inherited from class qx.core.Object |
---|
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlHttpTransport()
Method Detail |
---|
public void _applyState(java.lang.Object value, java.lang.Object old)
_applyState
in class AbstractRemoteTransport
public java.lang.Object _onreadystatechange(Event e)
public void failedLocally()
Force the transport into the failed state (“failed”).
This method should be used only if the requests URI was local access. I.e. it started with “file://”.
public java.lang.Integer getFetchedLength()
Returns the length of the content as fetched thus far
getFetchedLength
in class AbstractRemoteTransport
public java.lang.Object getReadyState()
Get the ready state of this transports request.
For qx.io.remote.XmlHttpTransport, ready state is a number between 1 to 4.
public java.lang.Object getRequest()
public java.lang.Object getResponseContent()
public java.lang.Object getResponseHeader(java.lang.Object vLabel)
Returns a specific header provided by the server upon sending a request, with header name determined by the argument headerName.
Only available at readyState 3 and 4 universally and in readyState 2 in Gecko.
getResponseHeader
in class AbstractRemoteTransport
public java.lang.Object getResponseHeaders()
Provides a hash of all response headers.
getResponseHeaders
in class AbstractRemoteTransport
public java.lang.String getResponseText()
Provides the response text from the request when available and null otherwise. By passing true as the “partial” parameter of this method, incomplete data will be made available to the caller.
getResponseText
in class AbstractRemoteTransport
public java.lang.Object getResponseXml()
Provides the XML provided by the response if any and null otherwise. By passing true as the “partial” parameter of this method, incomplete data will be made available to the caller.
getResponseXml
in class AbstractRemoteTransport
public java.lang.Integer getStatusCode()
Returns the current status code of the request if available or -1 if not.
getStatusCode
in class AbstractRemoteTransport
public java.lang.String getStatusText()
Provides the status text for the current request if available and null otherwise.
getStatusText
in class AbstractRemoteTransport
public java.lang.Object getStringResponseHeaders()
public void send()
send
in class AbstractRemoteTransport
public void setRequestHeader(java.lang.Object vLabel, java.lang.Object vValue)
Set a request header to this transports request.
setRequestHeader
in class AbstractRemoteTransport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |