/** * Sets the search portion of the location URL (the portion following the '?'). * @param search the new search portion of the location URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534620.aspx">MSDN Documentation</a> */ public void jsxSet_search(final String search) throws Exception { setUrl(UrlUtils.getUrlWithNewQuery(getUrl(), search)); }
/** * Sets the search portion of the link's URL (the portion starting with '?' * and up to but not including any '#').. * @param search the new search portion of the link's URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534620.aspx">MSDN Documentation</a> */ public void jsxSet_search(final String search) throws Exception { final String query; if (search == null || "?".equals(search) || "".equals(search)) { query = null; } else if (search.charAt(0) == '?') { query = search.substring(1); } else { query = search; } setUrl(UrlUtils.getUrlWithNewQuery(getUrl(), query)); }
/** * Sets the search portion of the link's URL (the portion starting with '?' * and up to but not including any '#').. * @param search the new search portion of the link's URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534620.aspx">MSDN Documentation</a> */ public void jsxSet_search(final String search) throws Exception { final String query; if (search == null || "?".equals(search) || "".equals(search)) { query = null; } else if (search.charAt(0) == '?') { query = search.substring(1); } else { query = search; } setUrl(UrlUtils.getUrlWithNewQuery(getUrl(), query)); }
/** * Sets the search portion of the link's URL (the portion starting with '?' * and up to but not including any '#').. * @param search the new search portion of the link's URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534620.aspx">MSDN Documentation</a> */ public void jsxSet_search(final String search) throws Exception { final String query; if (search == null || "?".equals(search) || "".equals(search)) { query = null; } else if (search.charAt(0) == '?') { query = search.substring(1); } else { query = search; } setUrl(UrlUtils.getUrlWithNewQuery(getUrl(), query)); }
/** * Sets the search portion of the location URL (the portion following the '?'). * @param search the new search portion of the location URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534620.aspx">MSDN Documentation</a> */ public void jsxSet_search(final String search) throws Exception { setUrl(UrlUtils.getUrlWithNewQuery(getUrl(), search)); }
/** * Sets the search portion of the location URL (the portion following the '?'). * @param search the new search portion of the location URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534620.aspx">MSDN Documentation</a> */ public void jsxSet_search(final String search) throws Exception { setUrl(UrlUtils.getUrlWithNewQuery(getUrl(), search)); }
/** * Sets the search portion of the link's URL (the portion starting with '?' * and up to but not including any '#').. * @param search the new search portion of the link's URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534620.aspx">MSDN Documentation</a> */ @JsxSetter public void setSearch(final String search) throws Exception { final String query; if (search == null || "?".equals(search) || "".equals(search)) { query = null; } else if (search.charAt(0) == '?') { query = search.substring(1); } else { query = search; } setUrl(UrlUtils.getUrlWithNewQuery(getUrl(), query)); }
/** * Sets the search portion of the link's URL (the portion starting with '?' * and up to but not including any '#').. * @param search the new search portion of the link's URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534620.aspx">MSDN Documentation</a> */ @JsxSetter public void setSearch(final String search) throws Exception { final String query; if (search == null || "?".equals(search) || "".equals(search)) { query = null; } else if (search.charAt(0) == '?') { query = search.substring(1); } else { query = search; } setUrl(UrlUtils.getUrlWithNewQuery(getUrl(), query)); }
/** * Sets the search portion of the location URL (the portion following the '?'). * @param search the new search portion of the location URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534620.aspx">MSDN Documentation</a> */ @JsxSetter public void setSearch(final String search) throws Exception { setUrl(UrlUtils.getUrlWithNewQuery(getUrl(), search)); }
if (cleanUrl.getQuery() != null) { cleanUrl = UrlUtils.getUrlWithNewQuery(cleanUrl, null);
if (cleanUrl.getQuery() != null) { cleanUrl = UrlUtils.getUrlWithNewQuery(cleanUrl, null);
if (cleanUrl.getQuery() != null) { cleanUrl = UrlUtils.getUrlWithNewQuery(cleanUrl, null);
/** * Sets the search portion of the location URL (the portion following the '?'). * @param search the new search portion of the location URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534620.aspx">MSDN Documentation</a> */ @JsxSetter public void setSearch(final String search) throws Exception { setUrl(UrlUtils.getUrlWithNewQuery(getUrl(), search)); }
if (cleanUrl.getQuery() != null) { cleanUrl = UrlUtils.getUrlWithNewQuery(cleanUrl, null);
if (cleanUrl.getQuery() != null) { cleanUrl = UrlUtils.getUrlWithNewQuery(cleanUrl, null);
/** * Reloads the current page, possibly forcing retrieval from the server even if * the browser cache contains the latest version of the document. * @param force if {@code true}, force reload from server; otherwise, may reload from cache * @throws IOException if there is a problem reloading the page * @see <a href="http://msdn.microsoft.com/en-us/library/ms536342.aspx">MSDN Documentation</a> */ @JsxFunction public void reload(final boolean force) throws IOException { final HtmlPage htmlPage = (HtmlPage) getWindow(getStartingScope()).getWebWindow().getEnclosedPage(); final WebRequest request = htmlPage.getWebResponse().getWebRequest(); String referer = htmlPage.getUrl().toExternalForm(); request.setAdditionalHeader(HttpHeader.REFERER, referer); referer = UrlUtils.getUrlWithNewQuery(htmlPage.getUrl(), null).toExternalForm(); referer = StringUtils.stripEnd(referer, "/"); request.setAdditionalHeader(HttpHeader.ORIGIN, referer); final WebWindow webWindow = window_.getWebWindow(); webWindow.getWebClient().download(webWindow, "", request, true, false, "JS location.reload"); }
/** * Reloads the current page, possibly forcing retrieval from the server even if * the browser cache contains the latest version of the document. * @param force if {@code true}, force reload from server; otherwise, may reload from cache * @throws IOException if there is a problem reloading the page * @see <a href="http://msdn.microsoft.com/en-us/library/ms536342.aspx">MSDN Documentation</a> */ @JsxFunction public void reload(final boolean force) throws IOException { final HtmlPage htmlPage = (HtmlPage) getWindow(getStartingScope()).getWebWindow().getEnclosedPage(); final WebRequest request = htmlPage.getWebResponse().getWebRequest(); String referer = htmlPage.getUrl().toExternalForm(); request.setAdditionalHeader(HttpHeader.REFERER, referer); referer = UrlUtils.getUrlWithNewQuery(htmlPage.getUrl(), null).toExternalForm(); referer = StringUtils.stripEnd(referer, "/"); request.setAdditionalHeader(HttpHeader.ORIGIN, referer); final WebWindow webWindow = window_.getWebWindow(); webWindow.getWebClient().download(webWindow, "", request, true, false, "JS location.reload"); }
url = UrlUtils.getUrlWithNewQuery(url, queryFormFields);
url = UrlUtils.getUrlWithNewQuery(url, queryFormFields);