/** * Returns the search portion of the location URL (the portion following the '?'). * @return the search portion of the location URL * @see <a href="http://msdn.microsoft.com/en-us/library/ms534620.aspx">MSDN Documentation</a> */ public String jsxGet_search() { final String search = getUrl().getQuery(); if (search == null) { return ""; } return "?" + search; }
/** * Returns the protocol portion of the location URL, including the trailing ':'. * @return the protocol portion of the location URL, including the trailing ':' * @see <a href="http://msdn.microsoft.com/en-us/library/ms534353.aspx">MSDN Documentation</a> */ public String jsxGet_protocol() { return getUrl().getProtocol() + ":"; }
/** * Returns the search portion of the location URL (the portion following the '?'). * @return the search portion of the location URL * @see <a href="http://msdn.microsoft.com/en-us/library/ms534620.aspx">MSDN Documentation</a> */ public String jsxGet_search() { final String search = getUrl().getQuery(); if (search == null) { return ""; } return "?" + search; }
/** * Returns the protocol portion of the location URL, including the trailing ':'. * @return the protocol portion of the location URL, including the trailing ':' * @see <a href="http://msdn.microsoft.com/en-us/library/ms534353.aspx">MSDN Documentation</a> */ public String jsxGet_protocol() { return getUrl().getProtocol() + ":"; }
/** * Returns the hostname portion of the location URL. * @return the hostname portion of the location URL * @see <a href="http://msdn.microsoft.com/en-us/library/ms533785.aspx">MSDN Documentation</a> */ public String jsxGet_hostname() { return getUrl().getHost(); }
/** * Returns the port portion of the location URL. * @return the port portion of the location URL * @see <a href="http://msdn.microsoft.com/en-us/library/ms534342.aspx">MSDN Documentation</a> */ public String jsxGet_port() { final int port = getUrl().getPort(); if (port == -1) { return ""; } return String.valueOf(port); }
/** * Returns the protocol portion of the location URL, including the trailing ':'. * @return the protocol portion of the location URL, including the trailing ':' * @see <a href="http://msdn.microsoft.com/en-us/library/ms534353.aspx">MSDN Documentation</a> */ @JsxGetter public String getProtocol() { return getUrl().getProtocol() + ":"; }
/** * Returns the hostname portion of the location URL. * @return the hostname portion of the location URL * @see <a href="http://msdn.microsoft.com/en-us/library/ms533785.aspx">MSDN Documentation</a> */ @JsxGetter public String getHostname() { return getUrl().getHost(); }
/** * Returns the port portion of the location URL. * @return the port portion of the location URL * @see <a href="http://msdn.microsoft.com/en-us/library/ms534342.aspx">MSDN Documentation</a> */ @JsxGetter public String getPort() { final int port = getUrl().getPort(); if (port == -1) { return ""; } return Integer.toString(port); }
/** * Sets the port portion of the location URL. * @param port the new port portion of the location URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534342.aspx">MSDN Documentation</a> */ public void jsxSet_port(final String port) throws Exception { setUrl(UrlUtils.getUrlWithNewPort(getUrl(), Integer.parseInt(port))); }
/** * Sets the hostname portion of the location URL. * @param hostname the new hostname portion of the location URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms533785.aspx">MSDN Documentation</a> */ public void jsxSet_hostname(final String hostname) throws Exception { setUrl(UrlUtils.getUrlWithNewHost(getUrl(), hostname)); }
/** * Sets the protocol portion of the location URL. * @param protocol the new protocol portion of the location URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534353.aspx">MSDN Documentation</a> */ public void jsxSet_protocol(final String protocol) throws Exception { setUrl(UrlUtils.getUrlWithNewProtocol(getUrl(), protocol)); }
/** * 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 pathname portion of the location URL. * @param pathname the new pathname portion of the location URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534332.aspx">MSDN Documentation</a> */ public void jsxSet_pathname(final String pathname) throws Exception { setUrl(UrlUtils.getUrlWithNewPath(getUrl(), pathname)); }
/** * Sets the protocol portion of the location URL. * @param protocol the new protocol portion of the location URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534353.aspx">MSDN Documentation</a> */ public void jsxSet_protocol(final String protocol) throws Exception { setUrl(UrlUtils.getUrlWithNewProtocol(getUrl(), protocol)); }
/** * Sets the hostname portion of the location URL. * @param hostname the new hostname portion of the location URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms533785.aspx">MSDN Documentation</a> */ public void jsxSet_hostname(final String hostname) throws Exception { setUrl(UrlUtils.getUrlWithNewHost(getUrl(), hostname)); }
/** * Sets the port portion of the location URL. * @param port the new port portion of the location URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534342.aspx">MSDN Documentation</a> */ @JsxSetter public void setPort(final String port) throws Exception { setUrl(UrlUtils.getUrlWithNewPort(getUrl(), Integer.parseInt(port))); }
/** * Sets the hostname portion of the location URL. * @param hostname the new hostname portion of the location URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms533785.aspx">MSDN Documentation</a> */ @JsxSetter public void setHostname(final String hostname) throws Exception { setUrl(UrlUtils.getUrlWithNewHost(getUrl(), hostname)); }
/** * Sets the protocol portion of the location URL. * @param protocol the new protocol portion of the location URL * @throws Exception if an error occurs * @see <a href="http://msdn.microsoft.com/en-us/library/ms534353.aspx">MSDN Documentation</a> */ @JsxSetter public void setProtocol(final String protocol) throws Exception { setUrl(UrlUtils.getUrlWithNewProtocol(getUrl(), protocol)); }
/** * 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)); }