[Laszlo-dev] For Review: Change 20080612-hqm-x Summary: add API for setting proxy server host
André Bargull
a.bargull at intensis.de
Fri Jun 13 05:27:41 PDT 2008
I'm going to review your change next week, because I'm not at home over
the weekend.
On 6/13/2008 2:03 PM, Henry Minsky wrote:
> Change 20080612-hqm-x by hqm at badtzmaru.home on 2008-06-12 22:39:52 EDT
> in /Users/hqm/openlaszlo/trunk4
> for http://svn.openlaszlo.org/openlaszlo/trunk
>
> Summary: add API for setting proxy server host
>
> New Features:
>
> Bugs Fixed: LPP-4449
>
> Technical Reviewer: a.bargull
> QA Reviewer: max
> Doc Reviewer: (pending)
>
> Documentation:
>
> Release Notes:
>
> The existing proxied media loader API is extended by an additional
> property, proxyurl, which can be used to specify the server to use for
> proxied
> media requests.
>
> proxyurl can be set to a string or a function. If a string, must be an
> absolute URL to a proxy server.
> If it is a function, it takes one argument, a target url, and must
> return a url of a proxy server to use.
>
> For a view, proxyurl defaults to a function which returns the canvas
> value.
>
> The default canvas.proxyurl is set to lz.Browser.getBaseURL() by default.
>
> Datasets now also have a 'proxyurl' property, which can be set. It
> defaults to the canvas
> value.
>
> Details:
>
> Tests:
>
> lfc/data/alldata.lzx (dhtml ,swf)
> calendar(dhtml,swf)
> amazon(dhtml,swf)
> smoke
> ant lztest
>
> specifying media proxy url:
> verify that this loads the image, while sending out the request to the
> specified proxy url
> <canvas width="100%" height="80%" debug="true"
> proxyurl="http://127.0.0.1:8080/trunk2/foo.lzx">
> <view id="t2"
> resource="http://www.beartronics.com/teletype/alert_m28_b.jpg" />
> </canvas>
>
> specifying data proxy url:
> <canvas width="100%" height="80%" debug="true">
> <debug fontsize="12"/>
>
> <dataset name="trunk2" src="/trunk4/test/mydata.xml" type="http"
> proxyurl="http://127.0.0.1:8080/trunk2/foo.lzx"
> request="true"
> ondata="Debug.write('trunk2 says', this)"/>
>
> <dataset name="trunk3" src="/trunk4/test/mydata.xml" type="http"
> proxyurl="http://127.0.0.1:8080/trunk3/foo.lzx"
> request="true"
> ondata="Debug.write('trunk3 says', this)"/>
>
> <dataset name="trunk4" src="/trunk4/test/mydata.xml" type="http"
> proxyurl="http://127.0.0.1:8080/trunk4/foo.lzx"
> request="true"
> ondata="Debug.write('trunk4 says', this)"/>
>
> </canvas>
>
>
> Files:
> M WEB-INF/lps/schema/lfc.lzx
> M WEB-INF/lps/lfc/kernel/swf/LzMediaLoader.lzs
> M WEB-INF/lps/lfc/kernel/swf/LzLoadQueue.as
> M WEB-INF/lps/lfc/kernel/swf/LzHTTPLoader.as
> M WEB-INF/lps/lfc/kernel/dhtml/LzHTTPLoader.js
> M WEB-INF/lps/lfc/kernel/swf9/LzHTTPLoader.as
> M WEB-INF/lps/lfc/services/LzBrowser.lzs
> M WEB-INF/lps/lfc/views/LaszloView.lzs
> M WEB-INF/lps/lfc/views/LaszloCanvas.lzs
> M WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs
> M WEB-INF/lps/lfc/data/LzDataset.lzs
>
>
> Changeset:
> http://svn.openlaszlo.org/openlaszlo/patches/20080612-hqm-x.tar
>
More information about the Laszlo-dev
mailing list