/** * APIMethod: clone * * Parameters: * obj - {HTTPRequest} * * Returns: * {HTTPRequest} An exact clone of this HTTPRequest */ public HTTPRequestLayer clone(HTTPRequestLayer obj){ return new HTTPRequestLayer(HTTPRequestLayerImpl.Clone(getJSObject(), obj.getJSObject())); }
/** * APIMethod: destroy */ public void destroy() { HTTPRequestLayerImpl.destroy(getJSObject()); }
/** * @param force - if true force redraw by adding random parameter to getMap * request * * If force is false or null no random parameters are added, in that case * the browser may cache the getMap request, thus not redrawing the map * */ public boolean redraw(boolean force) { return LayerImpl.redraw(getJSObject(), force); }
/** * APIMethod: setUrl * * Parameters: * newUrl - {String} */ public void setUrl(String newUrl){ HTTPRequestLayerImpl.setURL(getJSObject(), newUrl); };
/** * @param force - if true force redraw by adding random parameter to getMap request * * If force is false or null no random parameters are added, in that case * the browser may cache the getMap request, thus not redrawing the map * */ public boolean redraw(boolean force) { return LayerImpl.redraw(getJSObject(), force); }
/** * APIMethod: setUrl * * Parameters: newUrl - {String} */ public void setUrl(String newUrl) { HTTPRequestLayerImpl.setURL(getJSObject(), newUrl); }
/** * APIMethod: clone * * Parameters: obj - {HTTPRequest} * * Returns: {HTTPRequest} An exact clone of this HTTPRequest */ public HTTPRequestLayer clone(HTTPRequestLayer obj) { return new HTTPRequestLayer(HTTPRequestLayerImpl.Clone(getJSObject(), obj.getJSObject())); }
/** * APIMethod: destroy */ public void destroy(){ HTTPRequestLayerImpl.destroy(getJSObject()); }
/** * Method: selectUrl selectUrl() implements the standard floating-point * multiplicative hash function described by Knuth, and hashes the contents * of the given param string into a float between 0 and 1. This float is * then scaled to the size of the provided urls array, and used to select a * URL. * * Parameters: paramString - {String} urls - {String} * * Returns: {String} An entry from the urls array, deterministically * selected based on the paramString. */ public String selectUrl(String paramString, String url) { return HTTPRequestLayerImpl.selectUrl(getJSObject(), paramString, url); }
/** * Method: selectUrl * selectUrl() implements the standard floating-point multiplicative * hash function described by Knuth, and hashes the contents of the * given param string into a float between 0 and 1. This float is then * scaled to the size of the provided urls array, and used to select * a URL. * * Parameters: * paramString - {String} * urls - {String} * * Returns: * {String} An entry from the urls array, deterministically selected based * on the paramString. */ public String selectUrl(String paramString, String url){ return HTTPRequestLayerImpl.selectUrl(getJSObject(), paramString, url); }
/** * APIMethod: mergeNewParams * * Parameters: newParams - {Object} * * Returns: redrawn: {Boolean} whether the layer was actually redrawn. */ public boolean mergeNewParams(Params params) { return HTTPRequestLayerImpl.mergeNewParams(getJSObject(), params.getJSObject()); }
/** * APIMethod: mergeNewParams * * Parameters: * newParams - {Object} * * Returns: * redrawn: {Boolean} whether the layer was actually redrawn. */ public boolean mergeNewParams(Params params){ return HTTPRequestLayerImpl.mergeNewParams(getJSObject(), params.getJSObject()); }
/** * Method: getFullRequestString * Combine url with layer's params and these newParams. * * does checking on the serverPath variable, allowing for cases when it * is supplied with trailing ? or &, as well as cases where not. * * return in formatted string like this: * "server?key1=value1&key2=value2&key3=value3" * * WARNING: The altUrl parameter is deprecated and will be removed in 3.0. * * Parameters: * newParams - {WMSParams} * altUrl - {String} Use this as the url instead of the layer's url * * Returns: * {String} */ public String getFullRequestString(WMSParams newParams, String altUrl){ return HTTPRequestLayerImpl.getFullRequestString(getJSObject(), newParams.getJSObject(), altUrl); }
/** * Method: getFullRequestString Combine url with layer's params and these * newParams. * * does checking on the serverPath variable, allowing for cases when it is * supplied with trailing ? or &, as well as cases where not. * * return in formatted string like this: * "server?key1=value1&key2=value2&key3=value3" * * WARNING: The altUrl parameter is deprecated and will be removed in 3.0. * * Parameters: newParams - {WMSParams} altUrl - {String} Use this as the url * instead of the layer's url * * Returns: {String} */ public String getFullRequestString(WMSParams newParams, String altUrl) { return HTTPRequestLayerImpl.getFullRequestString(getJSObject(), newParams.getJSObject(), altUrl); }