|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gwtext.client.core.JsObject
com.gwtext.client.data.DataProxy
com.gwtext.client.data.HttpProxy
public class HttpProxy
An implementation of DataProxy
that reads a data object from the specified URL.
Note that this class cannot be used to retrieve data from a domain other than the domain from which the
running page was served.
For cross-domain access to remote data, use an ScriptTagProxy
.
Be aware that to enable the browser to parse an XML document, the server must set the Content-Type header in the
HTTP response to "text/xml".
ScriptTagProxy
Field Summary |
---|
Fields inherited from class com.gwtext.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
HttpProxy(Connection conn)
Construct a new HttpProxy using the specified Connection. |
|
HttpProxy(java.lang.String url)
Construct a new HttpProxy to the specified URL |
|
HttpProxy(java.lang.String url,
Connection.Method method)
Construct a new HttpProxy using the specified URL and method. |
|
HttpProxy(java.lang.String url,
java.lang.String method)
Deprecated. Use HttpProxy(String, com.gwtext.client.core.Connection.Method) instead |
Method Summary | |
---|---|
Connection |
getConnection()
Return the Connection object being used by this Proxy. |
Methods inherited from class com.gwtext.client.core.JsObject |
---|
getJsObj, getProperties, isCreated, setJsObj |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpProxy(java.lang.String url)
url
- data url, defaults to POSTpublic HttpProxy(java.lang.String url, java.lang.String method)
HttpProxy(String, com.gwtext.client.core.Connection.Method)
instead
Ajax
, will be used to make the
http request.
url
- data urlmethod
- GET or POSTAjax
public HttpProxy(java.lang.String url, Connection.Method method)
Ajax
, will be used to make the
http request.
url
- data urlmethod
- GET or POSTAjax
,
Connection.GET
,
Connection.POST
public HttpProxy(Connection conn)
conn
- connection to use to make the http callMethod Detail |
---|
public Connection getConnection()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |