/** * Gets all parameters from a URL **/ private String getParametersString() { String url = HttpUnitUtils.trimFragment( getDestination() ); if (url.trim().length() == 0) url = getBaseURL().toExternalForm(); if (HttpUnitUtils.isJavaScriptURL( url )) return ""; final int questionMarkIndex = url.indexOf("?"); if (questionMarkIndex >= 1 && questionMarkIndex < url.length() - 1) { return url.substring( questionMarkIndex + 1 ); } return ""; }
/** * Gets all parameters from a URL **/ private String getParametersString() { String url = HttpUnitUtils.trimFragment( getDestination() ); if (url.trim().length() == 0) url = getBaseURL().toExternalForm(); if (HttpUnitUtils.isJavaScriptURL( url )) return ""; final int questionMarkIndex = url.indexOf("?"); if (questionMarkIndex >= 1 && questionMarkIndex < url.length() - 1) { return url.substring( questionMarkIndex + 1 ); } return ""; }
/** * Gets all parameters from a URL **/ private String getParametersString() { String url = HttpUnitUtils.trimFragment( getDestination() ); if (url.trim().length() == 0) url = getBaseURL().toExternalForm(); if (HttpUnitUtils.isJavaScriptURL( url )) return ""; final int questionMarkIndex = url.indexOf("?"); if (questionMarkIndex >= 1 && questionMarkIndex < url.length() - 1) { return url.substring( questionMarkIndex + 1 ); } return ""; }
/** * get the relative URL for a weblink * change spaces to %20 * @return the relative URL as a string */ protected String getRelativeURL() { String result = HttpUnitUtils.encodeSpaces( HttpUnitUtils.trimFragment( getDestination() ) ); if (result.trim().length() == 0) result = getBaseURL().getFile(); return result; }
/** * get the relative URL for a weblink * change spaces to %20 * @return the relative URL as a string */ protected String getRelativeURL() { String result = HttpUnitUtils.encodeSpaces( HttpUnitUtils.trimFragment( getDestination() ) ); if (result.trim().length() == 0) result = getBaseURL().getFile(); return result; }
/** * get the relative URL for a weblink * change spaces to %20 * @return the relative URL as a string */ protected String getRelativeURL() { String result = HttpUnitUtils.encodeSpaces( HttpUnitUtils.trimFragment( getDestination() ) ); if (result.trim().length() == 0) result = getBaseURL().getFile(); return result; }
WebRequest getInitialRequest() { return new GetMethodWebRequest( _baseURL, HttpUnitUtils.trimFragment( NodeUtils.getNodeAttribute( _element, "src" ) ), _selector ); }
WebRequest getInitialRequest() { return new GetMethodWebRequest( _baseURL, HttpUnitUtils.trimFragment( NodeUtils.getNodeAttribute( _element, "src" ) ), _selector ); }
WebRequest getInitialRequest() { return new GetMethodWebRequest( _baseURL, HttpUnitUtils.trimFragment( NodeUtils.getNodeAttribute( _element, "src" ) ), _selector ); }